Streamline SendReceiveBlockingLock: Use "goto out:" in an error condition
Streamline SendReceiveBlockingLock: Use "goto out:" in an error condition Signed-off-by: Volker Lendecke <vl@samba.org> Signed-off-by: Steve French <sfrench@us.ibm.com>
This commit is contained in:
committed by
Steve French
parent
2b2bdfba7a
commit
17c8bfed8a
@@ -1062,7 +1062,10 @@ SendReceiveBlockingLock(const unsigned int xid, struct cifsTconInfo *tcon,
|
|||||||
cERROR(1, ("Frame too large received. Length: %d Xid: %d",
|
cERROR(1, ("Frame too large received. Length: %d Xid: %d",
|
||||||
receive_len, xid));
|
receive_len, xid));
|
||||||
rc = -EIO;
|
rc = -EIO;
|
||||||
} else { /* rcvd frame is ok */
|
goto out;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* rcvd frame is ok */
|
||||||
|
|
||||||
if (midQ->resp_buf && out_buf
|
if (midQ->resp_buf && out_buf
|
||||||
&& (midQ->midState == MID_RESPONSE_RECEIVED)) {
|
&& (midQ->midState == MID_RESPONSE_RECEIVED)) {
|
||||||
@@ -1099,7 +1102,8 @@ SendReceiveBlockingLock(const unsigned int xid, struct cifsTconInfo *tcon,
|
|||||||
rc = -EIO;
|
rc = -EIO;
|
||||||
cERROR(1, ("Bad MID state?"));
|
cERROR(1, ("Bad MID state?"));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
out:
|
||||||
DeleteMidQEntry(midQ);
|
DeleteMidQEntry(midQ);
|
||||||
if (rstart && rc == -EACCES)
|
if (rstart && rc == -EACCES)
|
||||||
return -ERESTARTSYS;
|
return -ERESTARTSYS;
|
||||||
|
Reference in New Issue
Block a user