aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/fs/cifs
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-05-27 13:50:31 +0100
committerSteve French <stfrench@microsoft.com>2020-06-01 00:10:18 -0500
commit136a5dc3309a53ee830cd649961d70c8bec55f38 (patch)
treea148e5f5452e6d35865de58901376ef2679ed4ef /fs/cifs
parentcifs: handle "nolease" option for vers=1.0 (diff)
downloadwireguard-linux-136a5dc3309a53ee830cd649961d70c8bec55f38.tar.xz
wireguard-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')
-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;