summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mlx5
diff options
context:
space:
mode:
authorKamal Heib <kamalheib1@gmail.com>2019-01-30 16:13:43 +0200
committerJason Gunthorpe <jgg@mellanox.com>2019-01-30 15:17:17 -0700
commite5c1bb47cca679e9b9e286981d64fd08792e1e80 (patch)
tree60c33090f02665564e3e5b3b1b2ae45f859e8de0 /drivers/infiniband/hw/mlx5
parentf3ffed0ce49a41cdbac5a85f42baeebe334ca9ab (diff)
downloadblackbird-op-linux-e5c1bb47cca679e9b9e286981d64fd08792e1e80.tar.gz
blackbird-op-linux-e5c1bb47cca679e9b9e286981d64fd08792e1e80.zip
IB/mlx5: Remove set but not used variable
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> Acked-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx5')
-rw-r--r--drivers/infiniband/hw/mlx5/devx.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/mlx5/devx.c b/drivers/infiniband/hw/mlx5/devx.c
index 12de63c63fa0..cd43e39ced87 100644
--- a/drivers/infiniband/hw/mlx5/devx.c
+++ b/drivers/infiniband/hw/mlx5/devx.c
@@ -1107,12 +1107,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);
}
OpenPOWER on IntegriCloud