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

Commit cbee67c2 authored by Colin Ian King's avatar Colin Ian King Committed by Martin K. Petersen
Browse files

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: default avatarColin Ian King <colin.king@canonical.com>
Reviewed-by: default avatarBart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent f8cf2f16
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -472,7 +472,6 @@ struct Scsi_Host *scsi_host_alloc(struct scsi_host_template *sht, int privsize)
	else
	else
		shost->dma_boundary = 0xffffffff;
		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;
	shost->use_blk_mq = scsi_use_blk_mq || shost->hostt->force_blk_mq;


	device_initialize(&shost->shost_gendev);
	device_initialize(&shost->shost_gendev);