.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * 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. |
---|
12 | 4 | */ |
---|
13 | 5 | /* |
---|
14 | 6 | * Copyright (c) 2005-2014 Brocade Communications Systems, Inc. |
---|
.. | .. |
---|
1092 | 1084 | |
---|
1093 | 1085 | case ENET_E_CHLD_STOPPED: |
---|
1094 | 1086 | bna_enet_rx_start(enet); |
---|
1095 | | - /* Fall through */ |
---|
| 1087 | + fallthrough; |
---|
1096 | 1088 | case ENET_E_FWRESP_PAUSE: |
---|
1097 | 1089 | if (enet->flags & BNA_ENET_F_PAUSE_CHANGED) { |
---|
1098 | 1090 | enet->flags &= ~BNA_ENET_F_PAUSE_CHANGED; |
---|
.. | .. |
---|
1797 | 1789 | |
---|
1798 | 1790 | /* A separate queue to allow synchronous setting of a list of MACs */ |
---|
1799 | 1791 | 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++) |
---|
1801 | 1793 | list_add_tail(&ucam_mod->ucmac[i].qe, &ucam_mod->del_q); |
---|
1802 | 1794 | |
---|
1803 | 1795 | ucam_mod->bna = bna; |
---|
.. | .. |
---|
1832 | 1824 | |
---|
1833 | 1825 | /* A separate queue to allow synchronous setting of a list of MACs */ |
---|
1834 | 1826 | 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++) |
---|
1836 | 1828 | list_add_tail(&mcam_mod->mcmac[i].qe, &mcam_mod->del_q); |
---|
1837 | 1829 | |
---|
1838 | 1830 | mcam_mod->bna = bna; |
---|