Commit a4a9c87e authored by Eli Cohen's avatar Eli Cohen Committed by Saeed Mahameed

net/mlx5: Remove unused argument

Argument ndev is not used in mlx5_handle_changeupper_event()
Remove it.
Signed-off-by: default avatarEli Cohen <elic@nvidia.com>
Reviewed-by: default avatarMark Bloch <mbloch@nvidia.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
parent ef9a3a4a
...@@ -850,7 +850,6 @@ static void mlx5_do_bond_work(struct work_struct *work) ...@@ -850,7 +850,6 @@ static void mlx5_do_bond_work(struct work_struct *work)
static int mlx5_handle_changeupper_event(struct mlx5_lag *ldev, static int mlx5_handle_changeupper_event(struct mlx5_lag *ldev,
struct lag_tracker *tracker, struct lag_tracker *tracker,
struct net_device *ndev,
struct netdev_notifier_changeupper_info *info) struct netdev_notifier_changeupper_info *info)
{ {
struct net_device *upper = info->upper_dev, *ndev_tmp; struct net_device *upper = info->upper_dev, *ndev_tmp;
...@@ -1006,8 +1005,7 @@ static int mlx5_lag_netdev_event(struct notifier_block *this, ...@@ -1006,8 +1005,7 @@ static int mlx5_lag_netdev_event(struct notifier_block *this,
switch (event) { switch (event) {
case NETDEV_CHANGEUPPER: case NETDEV_CHANGEUPPER:
changed = mlx5_handle_changeupper_event(ldev, &tracker, ndev, changed = mlx5_handle_changeupper_event(ldev, &tracker, ptr);
ptr);
break; break;
case NETDEV_CHANGELOWERSTATE: case NETDEV_CHANGELOWERSTATE:
changed = mlx5_handle_changelowerstate_event(ldev, &tracker, changed = mlx5_handle_changelowerstate_event(ldev, &tracker,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment