mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 00:20:32 +00:00
i40e: remove unnecessary i variable causing -Wshadow warning
Commit c61c8fe1d5
("i40e: Implement an ethtool private flag to stop
LLDP in FW") added an extra for-loop which added a shadowing 'i'
variable as the index.
However, the local variable i already exists, and we already use it as
a loop index. Additionally, at this point, there is no further use of
the variable, so it's safe to simply overwrite the variable contents.
This fixes a -Wshadow warning which has started being enabled on some
distributions
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Patryk Malek <patryk.malek@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
f25848d4cd
commit
4d9768237c
1 changed files with 0 additions and 1 deletions
|
@ -4642,7 +4642,6 @@ static int i40e_set_priv_flags(struct net_device *dev, u32 flags)
|
||||||
if (changed_flags & I40E_FLAG_DISABLE_FW_LLDP) {
|
if (changed_flags & I40E_FLAG_DISABLE_FW_LLDP) {
|
||||||
if (pf->flags & I40E_FLAG_DISABLE_FW_LLDP) {
|
if (pf->flags & I40E_FLAG_DISABLE_FW_LLDP) {
|
||||||
struct i40e_dcbx_config *dcbcfg;
|
struct i40e_dcbx_config *dcbcfg;
|
||||||
int i;
|
|
||||||
|
|
||||||
i40e_aq_stop_lldp(&pf->hw, true, NULL);
|
i40e_aq_stop_lldp(&pf->hw, true, NULL);
|
||||||
i40e_aq_set_dcb_parameters(&pf->hw, true, NULL);
|
i40e_aq_set_dcb_parameters(&pf->hw, true, NULL);
|
||||||
|
|
Loading…
Reference in a new issue