Commit 12eb0f84 authored by Petr Pavlu's avatar Petr Pavlu Committed by Saeed Mahameed

net/mlx5: Remove unused ctx variables

Remove mlx5_priv.ctx_list and ctx_lock which are no longer used after
commit 601c10c8 ("net/mlx5: Delete custom device management logic").
Signed-off-by: default avatarPetr Pavlu <petr.pavlu@suse.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
parent 5df5365a
...@@ -1603,8 +1603,6 @@ int mlx5_mdev_init(struct mlx5_core_dev *dev, int profile_idx) ...@@ -1603,8 +1603,6 @@ int mlx5_mdev_init(struct mlx5_core_dev *dev, int profile_idx)
int err; int err;
memcpy(&dev->profile, &profile[profile_idx], sizeof(dev->profile)); 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); lockdep_register_key(&dev->lock_key);
mutex_init(&dev->intf_state_mutex); mutex_init(&dev->intf_state_mutex);
lockdep_set_class(&dev->intf_state_mutex, &dev->lock_key); lockdep_set_class(&dev->intf_state_mutex, &dev->lock_key);
......
...@@ -606,8 +606,6 @@ struct mlx5_priv { ...@@ -606,8 +606,6 @@ struct mlx5_priv {
struct list_head pgdir_list; struct list_head pgdir_list;
/* end: alloc staff */ /* end: alloc staff */
struct list_head ctx_list;
spinlock_t ctx_lock;
struct mlx5_adev **adev; struct mlx5_adev **adev;
int adev_idx; int adev_idx;
int sw_vhca_id; int sw_vhca_id;
......
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