diff options
author | Amit Cohen <amcohen@nvidia.com> | 2022-06-21 11:33:35 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-06-22 12:56:57 +0100 |
commit | 6e66d2e4b3a20655262569ec394f79a2eee87028 (patch) | |
tree | 50a99ceda1e35dfd51c60033d2f87821012f2c71 /drivers | |
parent | 21c795f8494a152dbff86c50fe216e610a77bb0f (diff) |
mlxsw: spectrum_switchdev: Do not set 'multicast_enabled' twice
The function mlxsw_sp_port_mc_disabled_set() sets
'bridge_device->multicast_enabled' twice. Remove the unnecessary setting.
Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c index 099ecb594d03..85757d79cb27 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c @@ -870,8 +870,6 @@ static int mlxsw_sp_port_mc_disabled_set(struct mlxsw_sp_port *mlxsw_sp_port, return err; } - bridge_device->multicast_enabled = !mc_disabled; - return 0; } |