Skip to contentSkip to conversation

scsi: fix warning in scsi_sysfs.c

PATCH Lado 2 participants 2 messages Jul 31, 2007 SCSI

lore
Share & tools
lore

Lado

author
#0 lore raw

Subject: scsi: fix warning in scsi_sysfs.c

From: Ladislav Penko <[email protected]>

change: trivial fix warning (removed unused variable rq)

drivers/scsi/scsi_sysfs.c +0 -1
Index: linux/drivers/scsi/scsi_sysfs.c
===================================================================
@@ -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;
#1 lore raw
Quoted 7 lines · Lado

Subject: scsi: fix warning in scsi_sysfs.c

From: Ladislav Penko <[email protected]>

change: trivial fix warning (removed unused variable rq)

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