summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/hosts.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-03-28 17:41:42 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2018-04-09 16:34:41 -0400
commitcbee67c2d7f97aaa1a85501d621002b4dc1e24b8 (patch)
tree7ce46a4b5fd127354b32386055dd382449af40fd /drivers/scsi/hosts.c
parentf8cf2f16a7c95acce497bfafa90e7c6d8397d653 (diff)
downloadlinux-stable-cbee67c2d7f97aaa1a85501d621002b4dc1e24b8.tar.gz
linux-stable-cbee67c2d7f97aaa1a85501d621002b4dc1e24b8.tar.bz2
linux-stable-cbee67c2d7f97aaa1a85501d621002b4dc1e24b8.zip
scsi: core: remove redundant assignment to shost->use_blk_mq
The first assignment to shost->use_blk_mq is redundant as it is overwritten by the following statement. Remove this redundant code. Detected by CoverityScan, CID#1466993 ("Unused value") Signed-off-by: Colin Ian King <colin.king@canonical.com> Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/hosts.c')
-rw-r--r--drivers/scsi/hosts.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/scsi/hosts.c b/drivers/scsi/hosts.c
index 7649d63a1b8d..3771e59a9fae 100644
--- a/drivers/scsi/hosts.c
+++ b/drivers/scsi/hosts.c
@@ -472,7 +472,6 @@ struct Scsi_Host *scsi_host_alloc(struct scsi_host_template *sht, int privsize)
else
shost->dma_boundary = 0xffffffff;
- shost->use_blk_mq = scsi_use_blk_mq;
shost->use_blk_mq = scsi_use_blk_mq || shost->hostt->force_blk_mq;
device_initialize(&shost->shost_gendev);