summaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifssmb.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-05-27 14:50:31 +0200
committerSteve French <stfrench@microsoft.com>2020-06-01 07:10:18 +0200
commit136a5dc3309a53ee830cd649961d70c8bec55f38 (patch)
treea148e5f5452e6d35865de58901376ef2679ed4ef /fs/cifs/cifssmb.c
parentcifs: handle "nolease" option for vers=1.0 (diff)
downloadlinux-136a5dc3309a53ee830cd649961d70c8bec55f38.tar.xz
linux-136a5dc3309a53ee830cd649961d70c8bec55f38.zip
cifs: remove redundant initialization of variable rc
The variable rc is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/cifssmb.c')
-rw-r--r--fs/cifs/cifssmb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c
index 5014a82391ff..d62f9175c546 100644
--- a/fs/cifs/cifssmb.c
+++ b/fs/cifs/cifssmb.c
@@ -2375,7 +2375,7 @@ int
CIFSSMBWrite2(const unsigned int xid, struct cifs_io_parms *io_parms,
unsigned int *nbytes, struct kvec *iov, int n_vec)
{
- int rc = -EACCES;
+ int rc;
WRITE_REQ *pSMB = NULL;
int wct;
int smb_hdr_len;