Skip to content

Commit

Permalink
net/mlx5: Remove unused ctx variables
Browse files Browse the repository at this point in the history
Remove mlx5_priv.ctx_list and ctx_lock which are no longer used after
commit 601c10c ("net/mlx5: Delete custom device management logic").

Signed-off-by: Petr Pavlu <[email protected]>
Signed-off-by: Saeed Mahameed <[email protected]>
  • Loading branch information
petrpavlu authored and Saeed Mahameed committed Nov 30, 2022
1 parent 5df5365 commit 12eb0f8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions drivers/net/ethernet/mellanox/mlx5/core/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1603,8 +1603,6 @@ int mlx5_mdev_init(struct mlx5_core_dev *dev, int profile_idx)
int err;

memcpy(&dev->profile, &profile[profile_idx], sizeof(dev->profile));
INIT_LIST_HEAD(&priv->ctx_list);
spin_lock_init(&priv->ctx_lock);
lockdep_register_key(&dev->lock_key);
mutex_init(&dev->intf_state_mutex);
lockdep_set_class(&dev->intf_state_mutex, &dev->lock_key);
Expand Down
2 changes: 0 additions & 2 deletions include/linux/mlx5/driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -606,8 +606,6 @@ struct mlx5_priv {
struct list_head pgdir_list;
/* end: alloc staff */

struct list_head ctx_list;
spinlock_t ctx_lock;
struct mlx5_adev **adev;
int adev_idx;
int sw_vhca_id;
Expand Down

0 comments on commit 12eb0f8

Please sign in to comment.