aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs
diff options
context:
space:
mode:
authorSteve French <stfrench@microsoft.com>2021-11-22 18:31:03 -0600
committerSteve French <stfrench@microsoft.com>2021-11-23 10:07:00 -0600
commit350f4a562e1ffc2e4869e3083dc9b0ec4bca6c3a (patch)
tree076403427346676007661d04466e81988f6569d4 /fs/cifs
parentcifs: populate server_hostname for extra channels (diff)
downloadlinux-dev-350f4a562e1ffc2e4869e3083dc9b0ec4bca6c3a.tar.xz
linux-dev-350f4a562e1ffc2e4869e3083dc9b0ec4bca6c3a.zip
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/cifs')
-rw-r--r--fs/cifs/smb2pdu.c2
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;