RDMA/i40iw: Remove a set-but-not-used variable
authorBart Van Assche <[email protected]>
Wed, 11 Oct 2017 17:49:04 +0000 (10:49 -0700)
committerDoug Ledford <[email protected]>
Sun, 15 Oct 2017 00:47:06 +0000 (20:47 -0400)
Signed-off-by: Bart Van Assche <[email protected]>
Reviewed-by: Shiraz Saleem <[email protected]>
Signed-off-by: Doug Ledford <[email protected]>
drivers/infiniband/hw/i40iw/i40iw_cm.c

index 4e1ff81c5ba08f2e9f7567ce829218c79d22ec0d..f5cfb224e153a30ce49a32acc9945a0600757ae2 100644 (file)
@@ -1199,7 +1199,6 @@ static void i40iw_cm_timer_tick(unsigned long pass)
        struct i40iw_cm_core *cm_core = (struct i40iw_cm_core *)pass;
        u32 settimer = 0;
        unsigned long timetosend;
-       struct i40iw_sc_dev *dev;
        unsigned long flags;
 
        struct list_head timer_list;
@@ -1270,7 +1269,6 @@ static void i40iw_cm_timer_tick(unsigned long pass)
                spin_unlock_irqrestore(&cm_node->retrans_list_lock, flags);
 
                vsi = &cm_node->iwdev->vsi;
-               dev = cm_node->dev;
 
                if (!cm_node->ack_rcvd) {
                        atomic_inc(&send_entry->sqbuf->refcount);