mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
d1c95b0e65
commit
95f60bb811
|
@ -1494,9 +1494,7 @@ int _ocrdma_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr,
|
||||||
*/
|
*/
|
||||||
if (status < 0)
|
if (status < 0)
|
||||||
return status;
|
return status;
|
||||||
status = ocrdma_mbx_modify_qp(dev, qp, attr, attr_mask);
|
return ocrdma_mbx_modify_qp(dev, qp, attr, attr_mask);
|
||||||
|
|
||||||
return status;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int ocrdma_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr,
|
int ocrdma_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr,
|
||||||
|
|
Loading…
Reference in New Issue