Skip to content

Commit

Permalink
net/mlx5: Remove unused argument
Browse files Browse the repository at this point in the history
Argument ndev is not used in mlx5_handle_changeupper_event()
Remove it.

Signed-off-by: Eli Cohen <elic@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
  • Loading branch information
Eli Cohen authored and Saeed Mahameed committed May 18, 2022
1 parent ef9a3a4 commit a4a9c87
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/net/ethernet/mellanox/mlx5/core/lag/lag.c
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,6 @@ static void mlx5_do_bond_work(struct work_struct *work)

static int mlx5_handle_changeupper_event(struct mlx5_lag *ldev,
struct lag_tracker *tracker,
struct net_device *ndev,
struct netdev_notifier_changeupper_info *info)
{
struct net_device *upper = info->upper_dev, *ndev_tmp;
Expand Down Expand Up @@ -1006,8 +1005,7 @@ static int mlx5_lag_netdev_event(struct notifier_block *this,

switch (event) {
case NETDEV_CHANGEUPPER:
changed = mlx5_handle_changeupper_event(ldev, &tracker, ndev,
ptr);
changed = mlx5_handle_changeupper_event(ldev, &tracker, ptr);
break;
case NETDEV_CHANGELOWERSTATE:
changed = mlx5_handle_changelowerstate_event(ldev, &tracker,
Expand Down

0 comments on commit a4a9c87

Please sign in to comment.