scsi: remove scsi_set_tag_type
authorChristoph Hellwig <hch@lst.de>
Mon, 24 Nov 2014 14:36:21 +0000 (15:36 +0100)
committerChristoph Hellwig <hch@lst.de>
Thu, 4 Dec 2014 08:57:13 +0000 (09:57 +0100)
There is no benefit over just setting sdev->simple_tags directly.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com
Reviewed-by: Hannes Reinecke <hare@suse.de>
drivers/scsi/53c700.c
include/scsi/scsi_tcq.h

index 2c87a7ac1d8602bc01434cb801c71310fd8c97ba..82abfce1cb42b2b07c64b081beffd7aa5a538849 100644 (file)
@@ -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",
index 681e010c2c4867138e6ccd0e669e810f2489e177..e624acabd7a0e41335116f3d6dcc868923841fe1 100644 (file)
 
 
 #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)
 {