RDMA/usnic: Remove a set-but-not-used variable
authorBart Van Assche <bart.vanassche@wdc.com>
Wed, 11 Oct 2017 17:49:26 +0000 (10:49 -0700)
committerDoug Ledford <dledford@redhat.com>
Sun, 15 Oct 2017 00:47:07 +0000 (20:47 -0400)
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: Christian Benvenuti <benve@cisco.com>
Cc: Dave Goodell <dgoodell@cisco.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/usnic/usnic_ib_qp_grp.c

index 092d4e11a63386cf43e14ee1fe29e9d7e5a320c3..912d8ef043521fadd38a50ffbf4a1c5763cc69fd 100644 (file)
@@ -392,14 +392,12 @@ int usnic_ib_qp_grp_modify(struct usnic_ib_qp_grp *qp_grp,
                                void *data)
 {
        int status = 0;
-       int vnic_idx;
        struct ib_event ib_event;
        enum ib_qp_state old_state;
        struct usnic_transport_spec *trans_spec;
        struct usnic_ib_qp_grp_flow *qp_flow;
 
        old_state = qp_grp->state;
-       vnic_idx = usnic_vnic_get_index(qp_grp->vf->vnic);
        trans_spec = (struct usnic_transport_spec *) data;
 
        spin_lock(&qp_grp->lock);