IB/ocrdma: Skip using unneeded intermediate variable
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 26 Dec 2015 17:40:43 +0000 (18:40 +0100)
committerDoug Ledford <dledford@redhat.com>
Thu, 3 Mar 2016 18:33:22 +0000 (13:33 -0500)
Return the value from a call of the ocrdma_mbx_modify_qp() function
without using an extra assignment for the local variable "status".

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c

index 4a4c8d6f71c8c0ede4727f0478c1e0f7461abcf2..a8496a18e20d667614cf7b2c71408cc046c22b3d 100644 (file)
@@ -1494,9 +1494,7 @@ int _ocrdma_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr,
         */
        if (status < 0)
                return status;
-       status = ocrdma_mbx_modify_qp(dev, qp, attr, attr_mask);
-
-       return status;
+       return ocrdma_mbx_modify_qp(dev, qp, attr, attr_mask);
 }
 
 int ocrdma_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr,