Skip to content

Commit 95f60bb

Browse files
elfringdledford
authored andcommitted
IB/ocrdma: Skip using unneeded intermediate variable
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 <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
1 parent d1c95b0 commit 95f60bb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/infiniband/hw/ocrdma/ocrdma_verbs.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1494,9 +1494,7 @@ int _ocrdma_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr,
14941494
*/
14951495
if (status < 0)
14961496
return status;
1497-
status = ocrdma_mbx_modify_qp(dev, qp, attr, attr_mask);
1498-
1499-
return status;
1497+
return ocrdma_mbx_modify_qp(dev, qp, attr, attr_mask);
15001498
}
15011499

15021500
int ocrdma_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr,

0 commit comments

Comments
 (0)