mlxsw: spectrum_switchdev: Do not set 'multicast_enabled' twice
authorAmit Cohen <amcohen@nvidia.com>
Tue, 21 Jun 2022 08:33:35 +0000 (11:33 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Jun 2022 11:56:57 +0000 (12:56 +0100)
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>
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c

index 099ecb5..85757d7 100644 (file)
@@ -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;
 }