mirror of
https://github.com/torvalds/linux.git
synced 2026-05-25 15:41:52 +02:00
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>
This commit is contained in:
parent
59519803a9
commit
1efd4fc72e
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user