mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 01:53:29 +02:00
scsi: fnic: Remove unnecessary else and unnecessary break in FDLS
Incorporate review comments from Martin:
Remove unnecessary else and unnecessary break to fix warnings
in the FDLS code.
Reviewed-by: Sesidhar Baddela <sebaddel@cisco.com>
Reviewed-by: Arulprabhu Ponnusamy <arulponn@cisco.com>
Reviewed-by: Gian Carlo Boffa <gcboffa@cisco.com>
Reviewed-by: Arun Easi <aeasi@cisco.com>
Signed-off-by: Karan Tilak Kumar <kartilak@cisco.com>
Link: https://lore.kernel.org/r/20250106224451.3597-1-kartilak@cisco.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
8f22f904b2
commit
5b6179d4b6
|
|
@ -2776,23 +2776,19 @@ fdls_process_tgt_prli_rsp(struct fnic_iport_s *iport,
|
|||
/*Retry Plogi again from the timer routine. */
|
||||
tport->flags |= FNIC_FDLS_RETRY_FRAME;
|
||||
return;
|
||||
} else {
|
||||
FNIC_FCS_DBG(KERN_INFO, fnic->host, fnic->fnic_num,
|
||||
"PRLI returned ELS_LS_RJT from target: 0x%x",
|
||||
tgt_fcid);
|
||||
|
||||
fdls_tgt_logout(iport, tport);
|
||||
fdls_delete_tport(iport, tport);
|
||||
return;
|
||||
}
|
||||
break;
|
||||
FNIC_FCS_DBG(KERN_INFO, fnic->host, fnic->fnic_num,
|
||||
"PRLI returned ELS_LS_RJT from target: 0x%x",
|
||||
tgt_fcid);
|
||||
|
||||
fdls_tgt_logout(iport, tport);
|
||||
fdls_delete_tport(iport, tport);
|
||||
return;
|
||||
default:
|
||||
atomic64_inc(&iport->iport_stats.tport_prli_misc_rejects);
|
||||
FNIC_FCS_DBG(KERN_INFO, fnic->host, fnic->fnic_num,
|
||||
"PRLI not accepted from target: 0x%x", tgt_fcid);
|
||||
return;
|
||||
break;
|
||||
}
|
||||
|
||||
FNIC_FCS_DBG(KERN_INFO, fnic->host, fnic->fnic_num,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user