diff options
author | Ido Schimmel <idosch@mellanox.com> | 2017-07-12 03:12:54 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-07-12 11:15:52 -0400 |
commit | a9265b804dfdfca4e2ce3730fe0528da9c01dbf7 (patch) | |
tree | ba59f1b0f300b39e6043a328ac69556861f61270 | |
parent | 7387dbbcdb2404e189591435527dcc65463819d7 (diff) |
mlxsw: spectrum_switchdev: Remove unused variable
Commit 10e23eb299fa ("mlxsw: spectrum: Remove support for bypass bridge
port attributes/vlan set") removed statements that used 'bridge_vlan',
but didn't remove the variable itself resulting in the following warning
with W=1:
warning: variable ‘bridge_vlan’ set but not used
[-Wunused-but-set-variable]
Remove the variable and suppress the warning.
Fixes: 10e23eb299fa ("mlxsw: spectrum: Remove support for bypass bridge port attributes/vlan set")
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c index cd89a3e6cd81..4733fe918315 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c | |||
@@ -979,7 +979,6 @@ mlxsw_sp_bridge_port_vlan_add(struct mlxsw_sp_port *mlxsw_sp_port, | |||
979 | { | 979 | { |
980 | u16 pvid = mlxsw_sp_port_pvid_determine(mlxsw_sp_port, vid, is_pvid); | 980 | u16 pvid = mlxsw_sp_port_pvid_determine(mlxsw_sp_port, vid, is_pvid); |
981 | struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; | 981 | struct mlxsw_sp_port_vlan *mlxsw_sp_port_vlan; |
982 | struct mlxsw_sp_bridge_vlan *bridge_vlan; | ||
983 | u16 old_pvid = mlxsw_sp_port->pvid; | 982 | u16 old_pvid = mlxsw_sp_port->pvid; |
984 | int err; | 983 | int err; |
985 | 984 | ||
@@ -1000,8 +999,6 @@ mlxsw_sp_bridge_port_vlan_add(struct mlxsw_sp_port *mlxsw_sp_port, | |||
1000 | if (err) | 999 | if (err) |
1001 | goto err_port_vlan_bridge_join; | 1000 | goto err_port_vlan_bridge_join; |
1002 | 1001 | ||
1003 | bridge_vlan = mlxsw_sp_bridge_vlan_find(bridge_port, vid); | ||
1004 | |||
1005 | return 0; | 1002 | return 0; |
1006 | 1003 | ||
1007 | err_port_vlan_bridge_join: | 1004 | err_port_vlan_bridge_join: |