scsi: libfc: remove redundant variable ev_qual
Subsystems (3)
PATCH 1/1 scsi: libfc: remove redundant variable ev_qual
Variable ev_qual is being assigned and modified but the end result is never used. The variable is redundant and can be removed.
Signed-off-by Colin Ian King <[email protected]>
--- drivers/scsi/libfc/fc_disc.c | 3 --- 1 file changed, 3 deletions(-)
drivers/scsi/libfc/fc_disc.c +0 -3
@@ -75,7 +75,6 @@ static void fc_disc_recv_rscn_req(struct fc_disc *disc, struct fc_frame *fp)struct fc_seq_els_data rjt_data;unsigned int len;int redisc =0 ; -enum fc_els_rscn_ev_qual ev_qual;enum fc_els_rscn_addr_fmt fmt;LIST_HEAD (disc_ports);struct fc_disc_port *dp, *next;
@@ -107,8 +106,6 @@ static void fc_disc_recv_rscn_req(struct fc_disc *disc, struct fc_frame *fp) goto reject;for (pp = (void *)(rp +1 ); len >0 ; len -=sizeof (*pp), pp++) { - ev_qual = pp->rscn_page_flags >>ELS_RSCN_EV_QUAL_BIT ; - ev_qual &=ELS_RSCN_EV_QUAL_MASK ; fmt = pp->rscn_page_flags >>ELS_RSCN_ADDR_FMT_BIT ; fmt &=ELS_RSCN_ADDR_FMT_MASK ;/*
Signature · 1 line
2.38.1
Martin K. Petersen
AppliedColin,
Quoted 2 lines
Variable
ev_qualis being assigned and modified but the end result is never used. The variable is redundant and can be removed.
Applied to 6.2/scsi-staging, thanks!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering
Martin K. Petersen
AppliedQuoted 4 lines · Colin Ian King
Variable
ev_qualis being assigned and modified but the end result is never used. The variable is redundant and can be removed.
Applied to 6.2/scsi-queue, thanks!
[1/1] scsi: libfc: remove redundant variable ev_qual
https://git.kernel.org/mkp/scsi/c/0824050682ae
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering