Commit 0d817bc0 authored by Steve French's avatar Steve French

[CIFS] Remove redundant NULL check

Noticed by Coverity checker.
Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
parent 78b58e54
...@@ -2159,7 +2159,6 @@ CIFSSMBCopy(const int xid, struct cifsTconInfo *tcon, const char *fromName, ...@@ -2159,7 +2159,6 @@ CIFSSMBCopy(const int xid, struct cifsTconInfo *tcon, const char *fromName,
cFYI(1, ("Send error in copy = %d with %d files copied", cFYI(1, ("Send error in copy = %d with %d files copied",
rc, le16_to_cpu(pSMBr->CopyCount))); rc, le16_to_cpu(pSMBr->CopyCount)));
} }
if (pSMB)
cifs_buf_release(pSMB); cifs_buf_release(pSMB);
if (rc == -EAGAIN) if (rc == -EAGAIN)
...@@ -2249,7 +2248,6 @@ CIFSUnixCreateSymLink(const int xid, struct cifsTconInfo *tcon, ...@@ -2249,7 +2248,6 @@ CIFSUnixCreateSymLink(const int xid, struct cifsTconInfo *tcon,
if (rc) if (rc)
cFYI(1, ("Send error in SetPathInfo create symlink = %d", rc)); cFYI(1, ("Send error in SetPathInfo create symlink = %d", rc));
if (pSMB)
cifs_buf_release(pSMB); cifs_buf_release(pSMB);
if (rc == -EAGAIN) if (rc == -EAGAIN)
...@@ -4095,7 +4093,6 @@ CIFSGetDFSRefer(const int xid, struct cifsSesInfo *ses, ...@@ -4095,7 +4093,6 @@ CIFSGetDFSRefer(const int xid, struct cifsSesInfo *ses,
target_nodes, nls_codepage); target_nodes, nls_codepage);
GetDFSRefExit: GetDFSRefExit:
if (pSMB)
cifs_buf_release(pSMB); cifs_buf_release(pSMB);
if (rc == -EAGAIN) if (rc == -EAGAIN)
...@@ -5117,7 +5114,6 @@ CIFSSMBUnixSetPerms(const int xid, struct cifsTconInfo *tcon, ...@@ -5117,7 +5114,6 @@ CIFSSMBUnixSetPerms(const int xid, struct cifsTconInfo *tcon,
if (rc) if (rc)
cFYI(1, ("SetPathInfo (perms) returned %d", rc)); cFYI(1, ("SetPathInfo (perms) returned %d", rc));
if (pSMB)
cifs_buf_release(pSMB); cifs_buf_release(pSMB);
if (rc == -EAGAIN) if (rc == -EAGAIN)
goto setPermsRetry; goto setPermsRetry;
...@@ -5340,7 +5336,6 @@ CIFSSMBQAllEAs(const int xid, struct cifsTconInfo *tcon, ...@@ -5340,7 +5336,6 @@ CIFSSMBQAllEAs(const int xid, struct cifsTconInfo *tcon,
} }
} }
} }
if (pSMB)
cifs_buf_release(pSMB); cifs_buf_release(pSMB);
if (rc == -EAGAIN) if (rc == -EAGAIN)
goto QAllEAsRetry; goto QAllEAsRetry;
...@@ -5490,7 +5485,6 @@ ssize_t CIFSSMBQueryEA(const int xid, struct cifsTconInfo *tcon, ...@@ -5490,7 +5485,6 @@ ssize_t CIFSSMBQueryEA(const int xid, struct cifsTconInfo *tcon,
} }
} }
} }
if (pSMB)
cifs_buf_release(pSMB); cifs_buf_release(pSMB);
if (rc == -EAGAIN) if (rc == -EAGAIN)
goto QEARetry; goto QEARetry;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment