Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sfc: remove redundant variable old_vlan

Variable old_vlan is being assigned but is never used hence it is
and can be removed.

Cleans up clang warning:
warning: variable 'old_vlan' set but not used [-Wunused-but-set-variable]

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Colin Ian King and committed by
David S. Miller
2e6dde5c 9b0bb10a

+1 -2
+1 -2
drivers/net/ethernet/sfc/ef10_sriov.c
··· 564 564 { 565 565 struct efx_ef10_nic_data *nic_data = efx->nic_data; 566 566 struct ef10_vf *vf; 567 - u16 old_vlan, new_vlan; 567 + u16 new_vlan; 568 568 int rc = 0, rc2 = 0; 569 569 570 570 if (vf_i >= efx->vf_count) ··· 619 619 } 620 620 621 621 /* Do the actual vlan change */ 622 - old_vlan = vf->vlan; 623 622 vf->vlan = new_vlan; 624 623 625 624 /* Restore everything in reverse order */