Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7e2e1921 authored by Eli Cohen's avatar Eli Cohen Committed by Roland Dreier
Browse files

IB/mlx5: Remove dead code



The value of the local variable index is never used in reg_mr_callback().

Signed-off-by: default avatarEli Cohen <eli@mellanox.com>

[ Remove now-unused variable delta too.  - Roland ]

Signed-off-by: default avatarRoland Dreier <roland@purestorage.com>
parent 1b77d2bd
Loading
Loading
Loading
Loading
+0 −6
Original line number Original line Diff line number Diff line
@@ -72,14 +72,8 @@ static void reg_mr_callback(int status, void *context)
	int c = order2idx(dev, mr->order);
	int c = order2idx(dev, mr->order);
	struct mlx5_cache_ent *ent = &cache->ent[c];
	struct mlx5_cache_ent *ent = &cache->ent[c];
	u8 key;
	u8 key;
	unsigned long delta = jiffies - mr->start;
	unsigned long index;
	unsigned long flags;
	unsigned long flags;


	index = find_last_bit(&delta, 8 * sizeof(delta));
	if (index == 64)
		index = 0;

	spin_lock_irqsave(&ent->lock, flags);
	spin_lock_irqsave(&ent->lock, flags);
	ent->pending--;
	ent->pending--;
	spin_unlock_irqrestore(&ent->lock, flags);
	spin_unlock_irqrestore(&ent->lock, flags);