aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Cohen <eli@dev.mellanox.co.il>2013-10-31 09:26:31 -0400
committerRoland Dreier <roland@purestorage.com>2013-11-15 17:36:14 -0500
commit7e2e19210a8bbbcacd31e8ce4a0ea64e3ac37dea (patch)
tree357b9c99ba35e0555a0d9f21d7979f60b395493f
parent1b77d2bd753d119eedcbc08fda58934307676554 (diff)
IB/mlx5: Remove dead code
The value of the local variable index is never used in reg_mr_callback(). Signed-off-by: Eli Cohen <eli@mellanox.com> [ Remove now-unused variable delta too. - Roland ] Signed-off-by: Roland Dreier <roland@purestorage.com>
-rw-r--r--drivers/infiniband/hw/mlx5/mr.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/infiniband/hw/mlx5/mr.c b/drivers/infiniband/hw/mlx5/mr.c
index 2c4626f7b1b8..039c3e40fcb4 100644
--- a/drivers/infiniband/hw/mlx5/mr.c
+++ b/drivers/infiniband/hw/mlx5/mr.c
@@ -72,14 +72,8 @@ static void reg_mr_callback(int status, void *context)
72 int c = order2idx(dev, mr->order); 72 int c = order2idx(dev, mr->order);
73 struct mlx5_cache_ent *ent = &cache->ent[c]; 73 struct mlx5_cache_ent *ent = &cache->ent[c];
74 u8 key; 74 u8 key;
75 unsigned long delta = jiffies - mr->start;
76 unsigned long index;
77 unsigned long flags; 75 unsigned long flags;
78 76
79 index = find_last_bit(&delta, 8 * sizeof(delta));
80 if (index == 64)
81 index = 0;
82
83 spin_lock_irqsave(&ent->lock, flags); 77 spin_lock_irqsave(&ent->lock, flags);
84 ent->pending--; 78 ent->pending--;
85 spin_unlock_irqrestore(&ent->lock, flags); 79 spin_unlock_irqrestore(&ent->lock, flags);