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

Commit 17c8bfed authored by Volker Lendecke's avatar Volker Lendecke Committed by Steve French
Browse files

Streamline SendReceiveBlockingLock: Use "goto out:" in an error condition



Streamline SendReceiveBlockingLock: Use "goto out:" in an error condition

Signed-off-by: default avatarVolker Lendecke <vl@samba.org>
Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
parent 2b2bdfba
Loading
Loading
Loading
Loading
+37 −33
Original line number Diff line number Diff line
@@ -1062,7 +1062,10 @@ SendReceiveBlockingLock(const unsigned int xid, struct cifsTconInfo *tcon,
		cERROR(1, ("Frame too large received.  Length: %d  Xid: %d",
			receive_len, xid));
		rc = -EIO;
	} else {		/* rcvd frame is ok */
		goto out;
	}

	/* rcvd frame is ok */

	if (midQ->resp_buf && out_buf
	    && (midQ->midState == MID_RESPONSE_RECEIVED)) {
@@ -1099,7 +1102,8 @@ SendReceiveBlockingLock(const unsigned int xid, struct cifsTconInfo *tcon,
		rc = -EIO;
		cERROR(1, ("Bad MID state?"));
	}
	}

out:
	DeleteMidQEntry(midQ);
	if (rstart && rc == -EACCES)
		return -ERESTARTSYS;