]> git.baikalelectronics.ru Git - kernel.git/commitdiff
cifs: remove redundant initialization of variable rc
authorColin Ian King <colin.king@canonical.com>
Wed, 27 May 2020 12:50:31 +0000 (13:50 +0100)
committerSteve French <stfrench@microsoft.com>
Mon, 1 Jun 2020 05:10:18 +0000 (00:10 -0500)
The variable rc is being initialized with a value that is never read
and it is being updated later with a new value.  The initialization is
redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifssmb.c

index 5014a82391ff92987517a43cc7188cba7670bd32..d62f9175c546f0456628b8560d52ae192ec45ae2 100644 (file)
@@ -2375,7 +2375,7 @@ int
 CIFSSMBWrite2(const unsigned int xid, struct cifs_io_parms *io_parms,
              unsigned int *nbytes, struct kvec *iov, int n_vec)
 {
-       int rc = -EACCES;
+       int rc;
        WRITE_REQ *pSMB = NULL;
        int wct;
        int smb_hdr_len;