mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
scsi: remove scsi_get_tag_type
Both remaining users are better of just checking sdev->simple_tags directly. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Bart Van Assche <[email protected]> Reviewed-by: Martin K. Petersen <[email protected] Reviewed-by: Hannes Reinecke <[email protected]>
This commit is contained in:
parent
b70870c38e
commit
17ea01267c
3 changed files with 3 additions and 16 deletions
|
|
@ -1816,8 +1816,8 @@ NCR_700_queuecommand_lck(struct scsi_cmnd *SCp, void (*done)(struct scsi_cmnd *)
|
|||
hostdata->tag_negotiated &= ~(1<<scmd_id(SCp));
|
||||
}
|
||||
|
||||
if((hostdata->tag_negotiated &(1<<scmd_id(SCp)))
|
||||
&& scsi_get_tag_type(SCp->device)) {
|
||||
if ((hostdata->tag_negotiated & (1<<scmd_id(SCp))) &&
|
||||
SCp->device->simple_tags) {
|
||||
slot->tag = SCp->request->tag;
|
||||
CDEBUG(KERN_DEBUG, SCp, "sending out tag %d, slot %p\n",
|
||||
slot->tag, slot);
|
||||
|
|
|
|||
|
|
@ -5755,7 +5755,7 @@ static void ipr_erp_cancel_all(struct ipr_cmnd *ipr_cmd)
|
|||
|
||||
ipr_reinit_ipr_cmnd_for_erp(ipr_cmd);
|
||||
|
||||
if (!scsi_get_tag_type(scsi_cmd->device)) {
|
||||
if (!scsi_cmd->device->simple_tags) {
|
||||
ipr_erp_request_sense(ipr_cmd);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue