Re: [PATCH] scsi: dpt_i2o: remove set but not used 'pHba'

From: Martin K. Petersen
Date: Tue Sep 08 2020 - 22:12:08 EST


On Thu, 27 Aug 2020 20:58:12 +0800, Jason Yan wrote:

> This addresses the following gcc warning with "make W=1":
>
> drivers/scsi/dpt_i2o.c: In function ‘adpt_slave_configure’:
> drivers/scsi/dpt_i2o.c:411:12: warning: variable ‘pHba’ set but not used
> [-Wunused-but-set-variable]
> 411 | adpt_hba* pHba;
> | ^~~~

Applied to 5.10/scsi-queue, thanks!

[1/1] scsi: dpt_i2o: Remove set but not used 'pHba'
https://git.kernel.org/mkp/scsi/c/e34ce005a177

--
Martin K. Petersen Oracle Linux Engineering