.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (c) 2005-2014 Brocade Communications Systems, Inc. |
---|
3 | 4 | * Copyright (c) 2014- QLogic Corporation. |
---|
.. | .. |
---|
5 | 6 | * www.qlogic.com |
---|
6 | 7 | * |
---|
7 | 8 | * 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. |
---|
17 | 9 | */ |
---|
18 | 10 | |
---|
19 | 11 | /* |
---|
.. | .. |
---|
427 | 419 | |
---|
428 | 420 | case RPSM_EVENT_LOGO_RCVD: |
---|
429 | 421 | bfa_fcs_rport_send_logo_acc(rport); |
---|
430 | | - /* |
---|
431 | | - * !! fall through !! |
---|
432 | | - */ |
---|
| 422 | + fallthrough; |
---|
433 | 423 | case RPSM_EVENT_PRLO_RCVD: |
---|
434 | 424 | if (rport->prlo == BFA_TRUE) |
---|
435 | 425 | bfa_fcs_rport_send_prlo_acc(rport); |
---|
436 | 426 | |
---|
437 | 427 | bfa_fcxp_discard(rport->fcxp); |
---|
438 | | - /* |
---|
439 | | - * !! fall through !! |
---|
440 | | - */ |
---|
| 428 | + fallthrough; |
---|
441 | 429 | case RPSM_EVENT_FAILED: |
---|
442 | 430 | if (rport->plogi_retries < BFA_FCS_RPORT_MAX_RETRIES) { |
---|
443 | 431 | rport->plogi_retries++; |
---|
.. | .. |
---|
868 | 856 | * At least go offline when a PLOGI is received. |
---|
869 | 857 | */ |
---|
870 | 858 | bfa_fcxp_discard(rport->fcxp); |
---|
871 | | - /* |
---|
872 | | - * !!! fall through !!! |
---|
873 | | - */ |
---|
| 859 | + fallthrough; |
---|
874 | 860 | |
---|
875 | 861 | case RPSM_EVENT_FAILED: |
---|
876 | 862 | case RPSM_EVENT_ADDRESS_CHANGE: |
---|
.. | .. |
---|
1056 | 1042 | |
---|
1057 | 1043 | case RPSM_EVENT_LOGO_RCVD: |
---|
1058 | 1044 | bfa_fcs_rport_send_logo_acc(rport); |
---|
| 1045 | + fallthrough; |
---|
1059 | 1046 | case RPSM_EVENT_PRLO_RCVD: |
---|
1060 | 1047 | if (rport->prlo == BFA_TRUE) |
---|
1061 | 1048 | bfa_fcs_rport_send_prlo_acc(rport); |
---|
.. | .. |
---|
1144 | 1131 | bfa_fcs_rport_send_plogiacc(rport, NULL); |
---|
1145 | 1132 | break; |
---|
1146 | 1133 | } |
---|
1147 | | - /* |
---|
1148 | | - * !! fall through !! |
---|
1149 | | - */ |
---|
| 1134 | + fallthrough; |
---|
1150 | 1135 | |
---|
1151 | 1136 | case RPSM_EVENT_ADDRESS_CHANGE: |
---|
1152 | 1137 | if (!bfa_fcs_lport_is_online(rport->port)) { |
---|
.. | .. |
---|
1303 | 1288 | |
---|
1304 | 1289 | case RPSM_EVENT_LOGO_RCVD: |
---|
1305 | 1290 | bfa_fcs_rport_send_logo_acc(rport); |
---|
| 1291 | + fallthrough; |
---|
1306 | 1292 | case RPSM_EVENT_PRLO_RCVD: |
---|
1307 | 1293 | if (rport->prlo == BFA_TRUE) |
---|
1308 | 1294 | bfa_fcs_rport_send_prlo_acc(rport); |
---|
.. | .. |
---|
1346 | 1332 | |
---|
1347 | 1333 | case RPSM_EVENT_LOGO_RCVD: |
---|
1348 | 1334 | bfa_fcs_rport_send_logo_acc(rport); |
---|
| 1335 | + fallthrough; |
---|
1349 | 1336 | case RPSM_EVENT_PRLO_RCVD: |
---|
1350 | 1337 | if (rport->prlo == BFA_TRUE) |
---|
1351 | 1338 | bfa_fcs_rport_send_prlo_acc(rport); |
---|
.. | .. |
---|
1588 | 1575 | bfa_timer_start(rport->fcs->bfa, &rport->timer, |
---|
1589 | 1576 | bfa_fcs_rport_timeout, rport, |
---|
1590 | 1577 | bfa_fcs_rport_del_timeout); |
---|
1591 | | - }; |
---|
| 1578 | + } |
---|
1592 | 1579 | break; |
---|
1593 | 1580 | |
---|
1594 | 1581 | case RPSM_EVENT_DELETE: |
---|
.. | .. |
---|
2253 | 2240 | struct bfa_fcxp_s *fcxp; |
---|
2254 | 2241 | struct fchs_s fchs; |
---|
2255 | 2242 | struct bfa_fcs_lport_s *port = rport->port; |
---|
2256 | | - struct fc_adisc_s *adisc; |
---|
2257 | 2243 | |
---|
2258 | 2244 | bfa_trc(port->fcs, rx_fchs->s_id); |
---|
2259 | 2245 | bfa_trc(port->fcs, rx_fchs->d_id); |
---|
2260 | 2246 | |
---|
2261 | 2247 | rport->stats.adisc_rcvd++; |
---|
2262 | | - |
---|
2263 | | - adisc = (struct fc_adisc_s *) (rx_fchs + 1); |
---|
2264 | 2248 | |
---|
2265 | 2249 | /* |
---|
2266 | 2250 | * Accept if the itnim for this rport is online. |
---|
.. | .. |
---|
2462 | 2446 | bfa_fcs_itnim_brp_online(rport->itnim); |
---|
2463 | 2447 | if (!BFA_FCS_PID_IS_WKA(rport->pid)) |
---|
2464 | 2448 | bfa_fcs_rpf_rport_online(rport); |
---|
2465 | | - }; |
---|
| 2449 | + } |
---|
2466 | 2450 | |
---|
2467 | 2451 | wwn2str(lpwwn_buf, bfa_fcs_lport_get_pwwn(port)); |
---|
2468 | 2452 | wwn2str(rpwwn_buf, rport->pwwn); |
---|