cifs: remove initialization value
authorMuhammad Usama Anjum <usama.anjum@collabora.com>
Tue, 4 Oct 2022 06:23:32 +0000 (11:23 +0500)
committerSteve French <stfrench@microsoft.com>
Wed, 5 Oct 2022 22:42:39 +0000 (17:42 -0500)
Don't initialize the rc as its value is being overwritten before its
use.

Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smb2pdu.c

index 90ccac18f9f3fad055ef7b56328a12fa08bffb96..40fce33763072a63f24c0e8384e361d479d1a965 100644 (file)
@@ -873,7 +873,7 @@ SMB2_negotiate(const unsigned int xid,
        struct smb2_negotiate_rsp *rsp;
        struct kvec iov[1];
        struct kvec rsp_iov;
-       int rc = 0;
+       int rc;
        int resp_buftype;
        int blob_offset, blob_length;
        char *security_blob;