Re: [PATCH -next] scsi: qedi: remove set but not used variables 'cdev' and 'udev'

From: Martin K. Petersen
Date: Mon May 13 2019 - 18:34:51 EST



Yue,

> From: YueHaibing <yuehaibing@xxxxxxxxxx>
>
> Fixes gcc '-Wunused-but-set-variable' warning:
>
> drivers/scsi/qedi/qedi_iscsi.c: In function 'qedi_ep_connect':
> drivers/scsi/qedi/qedi_iscsi.c:813:23: warning: variable 'udev' set but not used [-Wunused-but-set-variable]
> drivers/scsi/qedi/qedi_iscsi.c:812:18: warning: variable 'cdev' set but not used [-Wunused-but-set-variable]

Applied to 5.2/scsi-queue. Thanks!

--
Martin K. Petersen Oracle Linux Engineering