Skip to content

Commit 37286d2

Browse files
idoschdavem330
authored andcommitted
mlxsw: spectrum: Remove unused function argument
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>
1 parent 0355b59 commit 37286d2

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

drivers/net/ethernet/mellanox/mlxsw/spectrum.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2872,7 +2872,6 @@ static int mlxsw_sp_port_lag_join(struct mlxsw_sp_port *mlxsw_sp_port,
28722872
}
28732873

28742874
static void mlxsw_sp_vport_bridge_leave(struct mlxsw_sp_port *mlxsw_sp_vport,
2875-
struct net_device *br_dev,
28762875
bool flush_fdb);
28772876

28782877
static void mlxsw_sp_port_lag_leave(struct mlxsw_sp_port *mlxsw_sp_port,
@@ -2903,7 +2902,7 @@ static void mlxsw_sp_port_lag_leave(struct mlxsw_sp_port *mlxsw_sp_port,
29032902
continue;
29042903

29052904
br_dev = mlxsw_sp_vport_br_get(mlxsw_sp_vport);
2906-
mlxsw_sp_vport_bridge_leave(mlxsw_sp_vport, br_dev, false);
2905+
mlxsw_sp_vport_bridge_leave(mlxsw_sp_vport, false);
29072906
}
29082907

29092908
if (mlxsw_sp_port->bridged) {
@@ -2995,7 +2994,7 @@ static void mlxsw_sp_port_vlan_unlink(struct mlxsw_sp_port *mlxsw_sp_port,
29952994
struct net_device *br_dev;
29962995

29972996
br_dev = mlxsw_sp_vport_br_get(mlxsw_sp_vport);
2998-
mlxsw_sp_vport_bridge_leave(mlxsw_sp_vport, br_dev, true);
2997+
mlxsw_sp_vport_bridge_leave(mlxsw_sp_vport, true);
29992998
}
30002999

30013000
mlxsw_sp_vport->dev = mlxsw_sp_port->dev;
@@ -3290,7 +3289,6 @@ static int mlxsw_sp_vport_bridge_join(struct mlxsw_sp_port *mlxsw_sp_vport,
32903289
}
32913290

32923291
static void mlxsw_sp_vport_bridge_leave(struct mlxsw_sp_port *mlxsw_sp_vport,
3293-
struct net_device *br_dev,
32943292
bool flush_fdb)
32953293
{
32963294
u16 vid = mlxsw_sp_vport_vid_get(mlxsw_sp_vport);
@@ -3369,8 +3367,7 @@ static int mlxsw_sp_netdevice_vport_event(struct net_device *dev,
33693367
*/
33703368
if (!mlxsw_sp_vport)
33713369
return 0;
3372-
mlxsw_sp_vport_bridge_leave(mlxsw_sp_vport, upper_dev,
3373-
true);
3370+
mlxsw_sp_vport_bridge_leave(mlxsw_sp_vport, true);
33743371
}
33753372
}
33763373

0 commit comments

Comments
 (0)