diff options
author | Christoph Hellwig <hch@lst.de> | 2014-11-24 15:36:21 +0100 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2014-12-04 09:57:13 +0100 |
commit | 4e484896ac8b1877097770bc630802d5535e8d46 (patch) | |
tree | 1282770ecc90f8a820dd658f67ab507ee2634a99 /include | |
parent | 17ea01267c75c5a2e00f3603037715d0d2ce4a58 (diff) | |
download | linux-4e484896ac8b1877097770bc630802d5535e8d46.tar.gz linux-4e484896ac8b1877097770bc630802d5535e8d46.tar.bz2 linux-4e484896ac8b1877097770bc630802d5535e8d46.zip |
scsi: remove scsi_set_tag_type
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/scsi/scsi_tcq.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/include/scsi/scsi_tcq.h b/include/scsi/scsi_tcq.h index 681e010c2c48..e624acabd7a0 100644 --- a/include/scsi/scsi_tcq.h +++ b/include/scsi/scsi_tcq.h @@ -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) { |