]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
fs: cifs: cifsssmb: remove redundant assignment to variable ret
authorColin Ian King <colin.king@canonical.com>
Tue, 23 Jul 2019 15:09:19 +0000 (16:09 +0100)
committerSteve French <stfrench@microsoft.com>
Mon, 16 Sep 2019 16:43:37 +0000 (11:43 -0500)
The variable ret is being initialized however this is never read
and later it is being reassigned to a new value. The initialization
is redundant and hence 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 3907653e63c7784e8f70fb1f48da7bd3dcf68b73..dbee2132e419d03147fc2b3de8f864aca06a293f 100644 (file)
@@ -1393,7 +1393,7 @@ int
 CIFS_open(const unsigned int xid, struct cifs_open_parms *oparms, int *oplock,
          FILE_ALL_INFO *buf)
 {
-       int rc = -EACCES;
+       int rc;
        OPEN_REQ *req = NULL;
        OPEN_RSP *rsp = NULL;
        int bytes_returned;