RDMA/ocrdma: Remove set-but-not-used variables
authorBart Van Assche <bart.vanassche@wdc.com>
Wed, 11 Oct 2017 17:49:15 +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@wdc.com>
Cc: Selvin Xavier <selvin.xavier@broadcom.com>
Cc: Devesh Sharma <devesh.sharma@broadcom.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/ocrdma/ocrdma_hw.c
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c

index eaacb71b0bff4d7f43e9226247bfd07ae8bfbb8b..f8c14c7baedbe2df4b2d2026498c1bdd0f1ddce4 100644 (file)
@@ -3187,7 +3187,7 @@ void ocrdma_eqd_set_task(struct work_struct *work)
        struct ocrdma_dev *dev =
                container_of(work, struct ocrdma_dev, eqd_work.work);
        struct ocrdma_eq *eq = NULL;
-       int i, num = 0, status = -EINVAL;
+       int i, num = 0;
        u64 eq_intr;
 
        for (i = 0; i < dev->eq_cnt; i++) {
@@ -3209,7 +3209,7 @@ void ocrdma_eqd_set_task(struct work_struct *work)
        }
 
        if (num)
-               status = ocrdma_modify_eqd(dev, &dev->eq_tbl[0], num);
+               ocrdma_modify_eqd(dev, &dev->eq_tbl[0], num);
        schedule_delayed_work(&dev->eqd_work, msecs_to_jiffies(1000));
 }
 
index 3757f1b8cbfc67641477b56a43114c06e0593b14..7866fd8051f68cc20c86966e96729479e2754c2d 100644 (file)
@@ -66,9 +66,7 @@ int ocrdma_query_gid(struct ib_device *ibdev, u8 port,
                     int index, union ib_gid *sgid)
 {
        int ret;
-       struct ocrdma_dev *dev;
 
-       dev = get_ocrdma_dev(ibdev);
        memset(sgid, 0, sizeof(*sgid));
        if (index >= OCRDMA_MAX_SGID)
                return -EINVAL;