cifs: remove redundant initialization of variable rc
The variable rc is being initialized with a value that is never read, the assignment is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <colin.king@canonical.com> Reviewed-by: Aurelien Aptel <aaptel@suse.com> Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz> Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
parent
57c8ce7ab3
commit
032e091d3e
|
@ -1220,7 +1220,7 @@ SMBLegacyOpen(const unsigned int xid, struct cifs_tcon *tcon,
|
|||
int *pOplock, FILE_ALL_INFO *pfile_info,
|
||||
const struct nls_table *nls_codepage, int remap)
|
||||
{
|
||||
int rc = -EACCES;
|
||||
int rc;
|
||||
OPENX_REQ *pSMB = NULL;
|
||||
OPENX_RSP *pSMBr = NULL;
|
||||
int bytes_returned;
|
||||
|
|
Loading…
Reference in New Issue