浏览代码

Remove an already-checked error condition in SendReceiveBlockingLock

Remove an already-checked error condition in SendReceiveBlockingLock

Signed-off-by: Volker Lendecke <vl@samba.org>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Volker Lendecke 16 年之前
父节点
当前提交
ac6a3ef405
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      fs/cifs/transport.c

+ 1 - 2
fs/cifs/transport.c

@@ -1067,8 +1067,7 @@ SendReceiveBlockingLock(const unsigned int xid, struct cifsTconInfo *tcon,
 
 	/* rcvd frame is ok */
 
-	if ((midQ->resp_buf == NULL) || (out_buf == NULL)
-	    || (midQ->midState != MID_RESPONSE_RECEIVED)) {
+	if ((out_buf == NULL) || (midQ->midState != MID_RESPONSE_RECEIVED)) {
 		rc = -EIO;
 		cERROR(1, ("Bad MID state?"));
 		goto out;