From: Colin Ian King Date: Wed, 31 Jul 2019 09:05:26 +0000 (+0100) Subject: cifs: remove redundant assignment to variable rc X-Git-Tag: v5.4-rc1~115^2~30 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1efd4fc72e1f1a7313aa66e1c0269f1041eba2ce;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Steve French --- diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c index ee5d74988a9f1..a653c429e8dca 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];