Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4e484896 authored by Christoph Hellwig's avatar Christoph Hellwig
Browse files

scsi: remove scsi_set_tag_type



There is no benefit over just setting sdev->simple_tags directly.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarBart Van Assche <bvanassche@acm.org>
Reviewed-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: default avatarHannes Reinecke <hare@suse.de>
parent 17ea0126
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -902,8 +902,8 @@ process_message(struct Scsi_Host *host, struct NCR_700_Host_Parameters *hostdata
			hostdata->tag_negotiated &= ~(1<<scmd_id(SCp));

			SCp->device->tagged_supported = 0;
			SCp->device->simple_tags = 0;
			scsi_change_queue_depth(SCp->device, host->cmd_per_lun);
			scsi_set_tag_type(SCp->device, 0);
		} else {
			shost_printk(KERN_WARNING, host,
				"(%d:%d) Unexpected REJECT Message %s\n",
+0 −15
Original line number Diff line number Diff line
@@ -15,21 +15,6 @@


#ifdef CONFIG_BLOCK
static inline void scsi_set_tag_type(struct scsi_device *sdev, int tag)
{
	switch (tag) {
	case MSG_ORDERED_TAG:
	case MSG_SIMPLE_TAG:
		sdev->simple_tags = 1;
		break;
	case 0:
		/* fall through */
	default:
		sdev->simple_tags = 0;
		break;
	}
}

static inline struct scsi_cmnd *scsi_mq_find_tag(struct Scsi_Host *shost,
						 int unique_tag)
{