diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2015-12-26 20:40:43 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-03-03 21:33:22 +0300 |
commit | 95f60bb8118c1fc368d7414409d555f050aea7f2 (patch) | |
tree | 0cd55385822ccb6bbfd716d1f8aa687b48022b58 /drivers/infiniband/hw/ocrdma/ocrdma_verbs.c | |
parent | d1c95b0e6526fc2a1841cc0b6b3bcb46c31cc038 (diff) | |
download | linux-95f60bb8118c1fc368d7414409d555f050aea7f2.tar.xz |
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 <elfring@users.sourceforge.net>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/ocrdma/ocrdma_verbs.c')
-rw-r--r-- | drivers/infiniband/hw/ocrdma/ocrdma_verbs.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c b/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c index 4a4c8d6f71c8..a8496a18e20d 100644 --- a/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c +++ b/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c @@ -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, |