[PATCH 27/40] scsi: bfa: bfa_fcs_rport: Remove unused variable 'adisc'

From: Lee Jones
Date: Thu Jul 23 2020 - 08:25:36 EST


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

drivers/scsi/bfa/bfa_fcs_rport.c: In function âbfa_fcs_rport_process_adiscâ:
drivers/scsi/bfa/bfa_fcs_rport.c:2243:21: warning: variable âadiscâ set but not used [-Wunused-but-set-variable]

Cc: Anil Gurumurthy <anil.gurumurthy@xxxxxxxxxx>
Cc: Sudarsana Kalluru <sudarsana.kalluru@xxxxxxxxxx>
Signed-off-by: Lee Jones <lee.jones@xxxxxxxxxx>
---
drivers/scsi/bfa/bfa_fcs_rport.c | 3 ---
1 file changed, 3 deletions(-)

diff --git a/drivers/scsi/bfa/bfa_fcs_rport.c b/drivers/scsi/bfa/bfa_fcs_rport.c
index fc294e1950a62..143c35bd668c2 100644
--- a/drivers/scsi/bfa/bfa_fcs_rport.c
+++ b/drivers/scsi/bfa/bfa_fcs_rport.c
@@ -2240,15 +2240,12 @@ bfa_fcs_rport_process_adisc(struct bfa_fcs_rport_s *rport,
struct bfa_fcxp_s *fcxp;
struct fchs_s fchs;
struct bfa_fcs_lport_s *port = rport->port;
- struct fc_adisc_s *adisc;

bfa_trc(port->fcs, rx_fchs->s_id);
bfa_trc(port->fcs, rx_fchs->d_id);

rport->stats.adisc_rcvd++;

- adisc = (struct fc_adisc_s *) (rx_fchs + 1);
-
/*
* Accept if the itnim for this rport is online.
* Else reject the ADISC.
--
2.25.1