OSDN Git Service

scsi: bfa: Remove set but unused variable 'rp'
authorLee Jones <lee.jones@linaro.org>
Thu, 23 Jul 2020 12:24:15 +0000 (13:24 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 25 Jul 2020 02:31:57 +0000 (22:31 -0400)
commit70b4de0bb928c61ba66c41c424a06bef1beb1bd8
tree0653f2924e1a923a0df6f97a1a7b8dae6a17f97a
parent2ad6e0c339d278458b46ff716fec0a7739ca3cf5
scsi: bfa: Remove set but unused variable 'rp'

This change subsequently makes 'rp_fcs' unused also.  Remove that too.

Fixes the following W=1 kernel build warning(s):

 drivers/scsi/bfa/bfa_fcpim.c: In function ‘bfa_fcpim_lunmask_delete’:
 drivers/scsi/bfa/bfa_fcpim.c:2338:22: warning: variable ‘rp’ set but not used [-Wunused-but-set-variable]
 2338 | struct bfa_rport_s *rp = NULL;
 | ^~

Link: https://lore.kernel.org/r/20200723122446.1329773-10-lee.jones@linaro.org
Cc: Anil Gurumurthy <anil.gurumurthy@qlogic.com>
Cc: Sudarsana Kalluru <sudarsana.kalluru@qlogic.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/bfa/bfa_fcpim.c