diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-07-31 11:05:26 +0200 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2019-09-16 18:43:37 +0200 |
commit | 1efd4fc72e1f1a7313aa66e1c0269f1041eba2ce (patch) | |
tree | 7b11e41de72865b709a81b8aa4d1c928d7f9c773 /fs/cifs/smb2pdu.c | |
parent | smb3: add missing flag definitions (diff) | |
download | linux-1efd4fc72e1f1a7313aa66e1c0269f1041eba2ce.tar.xz linux-1efd4fc72e1f1a7313aa66e1c0269f1041eba2ce.zip |
cifs: remove redundant assignment to variable rc
Variable rc is being initialized with a value that is never read
and rc is being re-assigned a little later on. The assignment is
redundant and hence 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/smb2pdu.c')
-rw-r--r-- | fs/cifs/smb2pdu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c index ee5d74988a9f..a653c429e8dc 100644 --- a/fs/cifs/smb2pdu.c +++ b/fs/cifs/smb2pdu.c @@ -3617,7 +3617,7 @@ SMB2_read(const unsigned int xid, struct cifs_io_parms *io_parms, unsigned int *nbytes, char **buf, int *buf_type) { struct smb_rqst rqst; - int resp_buftype, rc = -EACCES; + int resp_buftype, rc; struct smb2_read_plain_req *req = NULL; struct smb2_read_rsp *rsp = NULL; struct kvec iov[1]; |