hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/drivers/scsi/bfa/bfa_fcs_rport.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (c) 2005-2014 Brocade Communications Systems, Inc.
34 * Copyright (c) 2014- QLogic Corporation.
....@@ -5,15 +6,6 @@
56 * www.qlogic.com
67 *
78 * Linux driver for QLogic BR-series Fibre Channel Host Bus Adapter.
8
- *
9
- * This program is free software; you can redistribute it and/or modify it
10
- * under the terms of the GNU General Public License (GPL) Version 2 as
11
- * published by the Free Software Foundation
12
- *
13
- * This program is distributed in the hope that it will be useful, but
14
- * WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
- * General Public License for more details.
179 */
1810
1911 /*
....@@ -427,17 +419,13 @@
427419
428420 case RPSM_EVENT_LOGO_RCVD:
429421 bfa_fcs_rport_send_logo_acc(rport);
430
- /*
431
- * !! fall through !!
432
- */
422
+ fallthrough;
433423 case RPSM_EVENT_PRLO_RCVD:
434424 if (rport->prlo == BFA_TRUE)
435425 bfa_fcs_rport_send_prlo_acc(rport);
436426
437427 bfa_fcxp_discard(rport->fcxp);
438
- /*
439
- * !! fall through !!
440
- */
428
+ fallthrough;
441429 case RPSM_EVENT_FAILED:
442430 if (rport->plogi_retries < BFA_FCS_RPORT_MAX_RETRIES) {
443431 rport->plogi_retries++;
....@@ -868,9 +856,7 @@
868856 * At least go offline when a PLOGI is received.
869857 */
870858 bfa_fcxp_discard(rport->fcxp);
871
- /*
872
- * !!! fall through !!!
873
- */
859
+ fallthrough;
874860
875861 case RPSM_EVENT_FAILED:
876862 case RPSM_EVENT_ADDRESS_CHANGE:
....@@ -1056,6 +1042,7 @@
10561042
10571043 case RPSM_EVENT_LOGO_RCVD:
10581044 bfa_fcs_rport_send_logo_acc(rport);
1045
+ fallthrough;
10591046 case RPSM_EVENT_PRLO_RCVD:
10601047 if (rport->prlo == BFA_TRUE)
10611048 bfa_fcs_rport_send_prlo_acc(rport);
....@@ -1144,9 +1131,7 @@
11441131 bfa_fcs_rport_send_plogiacc(rport, NULL);
11451132 break;
11461133 }
1147
- /*
1148
- * !! fall through !!
1149
- */
1134
+ fallthrough;
11501135
11511136 case RPSM_EVENT_ADDRESS_CHANGE:
11521137 if (!bfa_fcs_lport_is_online(rport->port)) {
....@@ -1303,6 +1288,7 @@
13031288
13041289 case RPSM_EVENT_LOGO_RCVD:
13051290 bfa_fcs_rport_send_logo_acc(rport);
1291
+ fallthrough;
13061292 case RPSM_EVENT_PRLO_RCVD:
13071293 if (rport->prlo == BFA_TRUE)
13081294 bfa_fcs_rport_send_prlo_acc(rport);
....@@ -1346,6 +1332,7 @@
13461332
13471333 case RPSM_EVENT_LOGO_RCVD:
13481334 bfa_fcs_rport_send_logo_acc(rport);
1335
+ fallthrough;
13491336 case RPSM_EVENT_PRLO_RCVD:
13501337 if (rport->prlo == BFA_TRUE)
13511338 bfa_fcs_rport_send_prlo_acc(rport);
....@@ -1588,7 +1575,7 @@
15881575 bfa_timer_start(rport->fcs->bfa, &rport->timer,
15891576 bfa_fcs_rport_timeout, rport,
15901577 bfa_fcs_rport_del_timeout);
1591
- };
1578
+ }
15921579 break;
15931580
15941581 case RPSM_EVENT_DELETE:
....@@ -2253,14 +2240,11 @@
22532240 struct bfa_fcxp_s *fcxp;
22542241 struct fchs_s fchs;
22552242 struct bfa_fcs_lport_s *port = rport->port;
2256
- struct fc_adisc_s *adisc;
22572243
22582244 bfa_trc(port->fcs, rx_fchs->s_id);
22592245 bfa_trc(port->fcs, rx_fchs->d_id);
22602246
22612247 rport->stats.adisc_rcvd++;
2262
-
2263
- adisc = (struct fc_adisc_s *) (rx_fchs + 1);
22642248
22652249 /*
22662250 * Accept if the itnim for this rport is online.
....@@ -2462,7 +2446,7 @@
24622446 bfa_fcs_itnim_brp_online(rport->itnim);
24632447 if (!BFA_FCS_PID_IS_WKA(rport->pid))
24642448 bfa_fcs_rpf_rport_online(rport);
2465
- };
2449
+ }
24662450
24672451 wwn2str(lpwwn_buf, bfa_fcs_lport_get_pwwn(port));
24682452 wwn2str(rpwwn_buf, rport->pwwn);