diff options
author | Steve French <stfrench@microsoft.com> | 2021-11-22 18:31:03 -0600 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2021-11-23 10:07:00 -0600 |
commit | 350f4a562e1ffc2e4869e3083dc9b0ec4bca6c3a (patch) | |
tree | 076403427346676007661d04466e81988f6569d4 /fs | |
parent | 5112d80c162f456b3956dd4f5c58e9f0c6498516 (diff) | |
download | linux-350f4a562e1ffc2e4869e3083dc9b0ec4bca6c3a.tar.bz2 |
smb2: clarify rc initialization in smb2_reconnect
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/cifs/smb2pdu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c index 2f5f2c4c6183..8b3670388cda 100644 --- a/fs/cifs/smb2pdu.c +++ b/fs/cifs/smb2pdu.c @@ -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; |