]> git.baikalelectronics.ru Git - kernel.git/commitdiff
smb2: clarify rc initialization in smb2_reconnect
authorSteve French <stfrench@microsoft.com>
Tue, 23 Nov 2021 00:31:03 +0000 (18:31 -0600)
committerSteve French <stfrench@microsoft.com>
Tue, 23 Nov 2021 16:07:00 +0000 (10:07 -0600)
It is clearer to initialize rc at the beginning of the function.

Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smb2pdu.c

index 2f5f2c4c6183c9461bf819b21781989046f6c338..8b3670388cdaf682e23635b4336d4d5cdfce446c 100644 (file)
@@ -142,7 +142,7 @@ static int
 smb2_reconnect(__le16 smb2_command, struct cifs_tcon *tcon,
               struct TCP_Server_Info *server)
 {
-       int rc;
+       int rc = 0;
        struct nls_table *nls_codepage;
        struct cifs_ses *ses;
        int retries;