diff options
author | Colin Ian King <colin.king@canonical.com> | 2020-05-27 14:50:31 +0200 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2020-06-01 07:10:18 +0200 |
commit | 136a5dc3309a53ee830cd649961d70c8bec55f38 (patch) | |
tree | a148e5f5452e6d35865de58901376ef2679ed4ef /fs/cifs/cifssmb.c | |
parent | cifs: handle "nolease" option for vers=1.0 (diff) | |
download | linux-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.c | 2 |
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; |