Commit e5c1bb47 authored by Kamal Heib's avatar Kamal Heib Committed by Jason Gunthorpe

IB/mlx5: Remove set but not used variable

Remove 'del_mkey' variable that is set but not used.

Fixes: 534fd7aa ("IB/mlx5: Manage indirection mkey upon DEVX flow for ODP")
Signed-off-by: default avatarKamal Heib <kamalheib1@gmail.com>
Acked-by: default avatarLeon Romanovsky <leonro@mellanox.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent f3ffed0c
...@@ -1107,12 +1107,10 @@ static void devx_free_indirect_mkey(struct rcu_head *rcu) ...@@ -1107,12 +1107,10 @@ static void devx_free_indirect_mkey(struct rcu_head *rcu)
static void devx_cleanup_mkey(struct devx_obj *obj) static void devx_cleanup_mkey(struct devx_obj *obj)
{ {
struct mlx5_mkey_table *table = &obj->mdev->priv.mkey_table; struct mlx5_mkey_table *table = &obj->mdev->priv.mkey_table;
struct mlx5_core_mkey *del_mkey;
unsigned long flags; unsigned long flags;
write_lock_irqsave(&table->lock, flags); write_lock_irqsave(&table->lock, flags);
del_mkey = radix_tree_delete(&table->tree, radix_tree_delete(&table->tree, mlx5_base_mkey(obj->devx_mr.mmkey.key));
mlx5_base_mkey(obj->devx_mr.mmkey.key));
write_unlock_irqrestore(&table->lock, flags); write_unlock_irqrestore(&table->lock, flags);
} }
......
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