diff mbox series

scsi: Remove redundant assignment about request_queue->queuedata

Message ID 20200121071521.26959-1-yebin10@huawei.com (mailing list archive)
State Deferred
Headers show
Series scsi: Remove redundant assignment about request_queue->queuedata | expand

Commit Message

yebin (H) Jan. 21, 2020, 7:15 a.m. UTC
We already set request_queue->queuedata value in function scsi_mq_alloc_queue.

Signed-off-by: Ye Bin <yebin10@huawei.com>
---
 drivers/scsi/scsi_scan.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/scsi/scsi_scan.c b/drivers/scsi/scsi_scan.c
index 058079f915f1..57d2a00f3b28 100644
--- a/drivers/scsi/scsi_scan.c
+++ b/drivers/scsi/scsi_scan.c
@@ -275,7 +275,6 @@  static struct scsi_device *scsi_alloc_sdev(struct scsi_target *starget,
 		goto out;
 	}
 	WARN_ON_ONCE(!blk_get_queue(sdev->request_queue));
-	sdev->request_queue->queuedata = sdev;
 
 	scsi_change_queue_depth(sdev, sdev->host->cmd_per_lun ?
 					sdev->host->cmd_per_lun : 1);