Skip to content

Commit

Permalink
cifs: remove redundant initialization of variable rc
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Steve French <[email protected]>
  • Loading branch information
Colin Ian King authored and Steve French committed Jun 1, 2020
1 parent 8fd6e1d commit 136a5dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/cifs/cifssmb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 136a5dc

Please sign in to comment.