From: Steve French Date: Tue, 23 Nov 2021 00:31:03 +0000 (-0600) Subject: smb2: clarify rc initialization in smb2_reconnect X-Git-Tag: v5.16-rc3~37^2~1 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=350f4a562e1ffc2e4869e3083dc9b0ec4bca6c3a;p=linux-2.6-block.git smb2: clarify rc initialization in smb2_reconnect It is clearer to initialize rc at the beginning of the function. Reported-by: kernel test robot Reported-by: Dan Carpenter Reviewed-by: Paulo Alcantara (SUSE) Signed-off-by: Steve French --- 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;