mlxsw: spectrum_switchdev: Remove unused variable
authorIdo Schimmel <idosch@mellanox.com>
Wed, 12 Jul 2017 07:12:54 +0000 (09:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Jul 2017 15:15:52 +0000 (08:15 -0700)
commita9265b804dfdfca4e2ce3730fe0528da9c01dbf7
treeba59f1b0f300b39e6043a328ac69556861f61270
parent7387dbbcdb2404e189591435527dcc65463819d7
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>
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c