aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs
diff options
context:
space:
mode:
authorMuhammad Usama Anjum <usama.anjum@collabora.com>2022-10-04 11:23:32 +0500
committerSteve French <stfrench@microsoft.com>2022-10-05 17:42:39 -0500
commitf5823f5ee36040c2a8b8b36afe0783fe0bd7ad14 (patch)
tree8291ce64ba83727aa76782c38c17dc5b5f3c285f /fs/cifs
parentcifs: Replace a couple of one-element arrays with flexible-array members (diff)
downloadlinux-dev-f5823f5ee36040c2a8b8b36afe0783fe0bd7ad14.tar.xz
linux-dev-f5823f5ee36040c2a8b8b36afe0783fe0bd7ad14.zip
cifs: remove initialization value
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>
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 90ccac18f9f3..40fce3376307 100644
--- a/fs/cifs/smb2pdu.c
+++ b/fs/cifs/smb2pdu.c
@@ -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;