On Mon, Jul 23, 2007 at 04:36:38PM +0200, Frederik Deweerdt wrote:
> Hi James,
>
> A compile of the latest git on arm triggers the following warning:
> CC [M] drivers/scsi/scsi_sysfs.o
> drivers/scsi/scsi_sysfs.c: In function `scsi_sysfs_add_sdev':
> drivers/scsi/scsi_sysfs.c:718: warning:
On Mon, 2007-07-23 at 16:36 +0200, Frederik Deweerdt wrote:
> - struct request_queue *rq = sdev->request_queue;
>
> if ((error = scsi_device_set_state(sdev, SDEV_RUNNING)) != 0)
> return error;
> @@ -736,7 +735,8 @@ int scsi_sysfs_add_sdev(struct scsi_device *sdev)
>
Hi James,
A compile of the latest git on arm triggers the following warning:
CC [M] drivers/scsi/scsi_sysfs.o
drivers/scsi/scsi_sysfs.c: In function `scsi_sysfs_add_sdev':
drivers/scsi/scsi_sysfs.c:718: warning: unused variable `rq'
The following patch kills the intermediary variable.
Reg
3 matches
Mail list logo