forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/drivers/net/ethernet/brocade/bna/bna_enet.c
....@@ -1,14 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Linux network driver for QLogic BR-series Converged Network Adapter.
3
- *
4
- * This program is free software; you can redistribute it and/or modify it
5
- * under the terms of the GNU General Public License (GPL) Version 2 as
6
- * published by the Free Software Foundation
7
- *
8
- * This program is distributed in the hope that it will be useful, but
9
- * WITHOUT ANY WARRANTY; without even the implied warranty of
10
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
- * General Public License for more details.
124 */
135 /*
146 * Copyright (c) 2005-2014 Brocade Communications Systems, Inc.
....@@ -1092,7 +1084,7 @@
10921084
10931085 case ENET_E_CHLD_STOPPED:
10941086 bna_enet_rx_start(enet);
1095
- /* Fall through */
1087
+ fallthrough;
10961088 case ENET_E_FWRESP_PAUSE:
10971089 if (enet->flags & BNA_ENET_F_PAUSE_CHANGED) {
10981090 enet->flags &= ~BNA_ENET_F_PAUSE_CHANGED;
....@@ -1797,7 +1789,7 @@
17971789
17981790 /* A separate queue to allow synchronous setting of a list of MACs */
17991791 INIT_LIST_HEAD(&ucam_mod->del_q);
1800
- for (i = i; i < (bna->ioceth.attr.num_ucmac * 2); i++)
1792
+ for (; i < (bna->ioceth.attr.num_ucmac * 2); i++)
18011793 list_add_tail(&ucam_mod->ucmac[i].qe, &ucam_mod->del_q);
18021794
18031795 ucam_mod->bna = bna;
....@@ -1832,7 +1824,7 @@
18321824
18331825 /* A separate queue to allow synchronous setting of a list of MACs */
18341826 INIT_LIST_HEAD(&mcam_mod->del_q);
1835
- for (i = i; i < (bna->ioceth.attr.num_mcmac * 2); i++)
1827
+ for (; i < (bna->ioceth.attr.num_mcmac * 2); i++)
18361828 list_add_tail(&mcam_mod->mcmac[i].qe, &mcam_mod->del_q);
18371829
18381830 mcam_mod->bna = bna;