scsi: fix warning in scsi_sysfs.c
Subject: scsi: fix warning in scsi_sysfs.c
From: Ladislav Penko <[email protected]>
change: trivial fix warning (removed unused variable rq)
Signed-off-by Ladislav Penko <[email protected]>
drivers/scsi/scsi_sysfs.c +0 -1
@@ -715,7 +715,6 @@ static int attr_add(struct device *dev,int scsi_sysfs_add_sdev (struct scsi_device *sdev) {int error, i; -struct request_queue *rq = sdev->request_queue;if ((error =scsi_device_set_state (sdev,SDEV_RUNNING )) !=0 )return error;
Quoted 7 lines · Lado
Subject: scsi: fix warning in
scsi_sysfs.cFrom: Ladislav Penko <[email protected]>
change: trivial fix warning (removed unused variable rq)
Signed-off-by Ladislav Penko <[email protected]>
The trivial fixes aren't always the best. In this case, if you set CONFIG_BLK_DEV_BSG=y you'll find the compile breaks with this fix. The correct fix should already be upstream by now.
James