diff mbox series

[for-next,2/2] IB/mlx5: Remove set but not used variable

Message ID 20190130141343.9129-3-kamalheib1@gmail.com (mailing list archive)
State Mainlined
Commit e5c1bb47cca679e9b9e286981d64fd08792e1e80
Delegated to: Jason Gunthorpe
Headers show
Series mlx5 fixes | expand

Commit Message

Kamal Heib Jan. 30, 2019, 2:13 p.m. UTC
Remove 'del_mkey' variable that is set but not used.

Fixes: 534fd7aac56a ("IB/mlx5: Manage indirection mkey upon DEVX flow for ODP")
Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
---
 drivers/infiniband/hw/mlx5/devx.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

Comments

Leon Romanovsky Jan. 30, 2019, 7:07 p.m. UTC | #1
On Wed, Jan 30, 2019 at 04:13:43PM +0200, Kamal Heib wrote:
> Remove 'del_mkey' variable that is set but not used.
>
> Fixes: 534fd7aac56a ("IB/mlx5: Manage indirection mkey upon DEVX flow for ODP")
> Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
> ---
>  drivers/infiniband/hw/mlx5/devx.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
>

Thanks,
Acked-by: Leon Romanovsky <leonro@mellanox.com>
diff mbox series

Patch

diff --git a/drivers/infiniband/hw/mlx5/devx.c b/drivers/infiniband/hw/mlx5/devx.c
index bbf9a26d8fa6..62e32f0e00a2 100644
--- a/drivers/infiniband/hw/mlx5/devx.c
+++ b/drivers/infiniband/hw/mlx5/devx.c
@@ -1096,12 +1096,10 @@  static void devx_free_indirect_mkey(struct rcu_head *rcu)
 static void devx_cleanup_mkey(struct devx_obj *obj)
 {
 	struct mlx5_mkey_table *table = &obj->mdev->priv.mkey_table;
-	struct mlx5_core_mkey *del_mkey;
 	unsigned long flags;
 
 	write_lock_irqsave(&table->lock, flags);
-	del_mkey = radix_tree_delete(&table->tree,
-				     mlx5_base_mkey(obj->devx_mr.mmkey.key));
+	radix_tree_delete(&table->tree, mlx5_base_mkey(obj->devx_mr.mmkey.key));
 	write_unlock_irqrestore(&table->lock, flags);
 }