cifs: remove redundant initialization of variable rc
authorColin Ian King <colin.king@canonical.com>
Sun, 13 Jun 2021 14:01:23 +0000 (15:01 +0100)
committerSteve French <stfrench@microsoft.com>
Mon, 21 Jun 2021 02:28:16 +0000 (21:28 -0500)
The variable rc is being initialized with a value that is never read, the
assignment is redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifssmb.c

index 41f7416..2343378 100644 (file)
@@ -1220,7 +1220,7 @@ SMBLegacyOpen(const unsigned int xid, struct cifs_tcon *tcon,
            int *pOplock, FILE_ALL_INFO *pfile_info,
            const struct nls_table *nls_codepage, int remap)
 {
-       int rc = -EACCES;
+       int rc;
        OPENX_REQ *pSMB = NULL;
        OPENX_RSP *pSMBr = NULL;
        int bytes_returned;