]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
IB/mlx5: Remove dead code
authorEli Cohen <eli@dev.mellanox.co.il>
Thu, 31 Oct 2013 13:26:31 +0000 (15:26 +0200)
committerRoland Dreier <roland@purestorage.com>
Fri, 15 Nov 2013 22:36:14 +0000 (14:36 -0800)
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>
drivers/infiniband/hw/mlx5/mr.c

index 2c4626f7b1b809dd5a43553e0ff7356ae0e724f5..039c3e40fcb4c3f36d5dba3c3ef9daf0ed5c74e0 100644 (file)
@@ -72,14 +72,8 @@ static void reg_mr_callback(int status, void *context)
        int c = order2idx(dev, mr->order);
        struct mlx5_cache_ent *ent = &cache->ent[c];
        u8 key;
-       unsigned long delta = jiffies - mr->start;
-       unsigned long index;
        unsigned long flags;
 
-       index = find_last_bit(&delta, 8 * sizeof(delta));
-       if (index == 64)
-               index = 0;
-
        spin_lock_irqsave(&ent->lock, flags);
        ent->pending--;
        spin_unlock_irqrestore(&ent->lock, flags);