Re: [PATCH -next] scsi: fnic: Remove set but not used variable 'vdev'
From: Martin K. Petersen
Date: Tue Jan 29 2019 - 01:17:08 EST
YueHaibing,
> Fixes gcc '-Wunused-but-set-variable' warning:
>
> drivers/scsi/fnic/vnic_wq.c: In function 'vnic_wq_alloc_bufs':
> drivers/scsi/fnic/vnic_wq.c:50:19: warning:
> variable 'vdev' set but not used [-Wunused-but-set-variable]
>
> drivers/scsi/fnic/vnic_rq.c: In function 'vnic_rq_alloc_bufs':
> drivers/scsi/fnic/vnic_rq.c:30:19: warning:
> variable 'vdev' set but not used [-Wunused-but-set-variable]
Applied to 5.1/scsi-queue, thanks!
--
Martin K. Petersen Oracle Linux Engineering