Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 95f60bb8 authored by Markus Elfring's avatar Markus Elfring Committed by Doug Ledford
Browse files

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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent d1c95b0e
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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,