cifs: remove redundant assignment to variable rc
authorColin Ian King <colin.king@canonical.com>
Wed, 31 Jul 2019 09:05:26 +0000 (10:05 +0100)
committerSteve French <stfrench@microsoft.com>
Mon, 16 Sep 2019 16:43:37 +0000 (11:43 -0500)
Variable rc is being initialized with a value that is never read
and rc is being re-assigned a little later on. The assignment 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/smb2pdu.c

index ee5d749..a653c42 100644 (file)
@@ -3617,7 +3617,7 @@ SMB2_read(const unsigned int xid, struct cifs_io_parms *io_parms,
          unsigned int *nbytes, char **buf, int *buf_type)
 {
        struct smb_rqst rqst;
-       int resp_buftype, rc = -EACCES;
+       int resp_buftype, rc;
        struct smb2_read_plain_req *req = NULL;
        struct smb2_read_rsp *rsp = NULL;
        struct kvec iov[1];