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

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

Remove an already-checked error condition in SendReceiveBlockingLock



Remove an already-checked error condition in SendReceiveBlockingLock

Signed-off-by: default avatarVolker Lendecke <vl@samba.org>
Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
parent 698e96a8
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -1067,8 +1067,7 @@ SendReceiveBlockingLock(const unsigned int xid, struct cifsTconInfo *tcon,


	/* rcvd frame is ok */
	/* rcvd frame is ok */


	if ((midQ->resp_buf == NULL) || (out_buf == NULL)
	if ((out_buf == NULL) || (midQ->midState != MID_RESPONSE_RECEIVED)) {
	    || (midQ->midState != MID_RESPONSE_RECEIVED)) {
		rc = -EIO;
		rc = -EIO;
		cERROR(1, ("Bad MID state?"));
		cERROR(1, ("Bad MID state?"));
		goto out;
		goto out;