aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-07-23 11:09:19 -0400
committerSteve French <stfrench@microsoft.com>2019-09-16 12:43:37 -0400
commit1afdea4f19a97ed98f65c41fd11c77e5264838ae (patch)
tree8352c20a21a277cdf13848cc606543d277f4236a /fs/cifs
parentbecc2ba26ae65bfeaece35a1b67e8a54eb9677cf (diff)
fs: cifs: cifsssmb: remove redundant assignment to variable ret
The variable ret is being initialized however this is never read and later it is being reassigned to a new value. The initialization 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')
-rw-r--r--fs/cifs/cifssmb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c
index 3907653e63c7..dbee2132e419 100644
--- a/fs/cifs/cifssmb.c
+++ b/fs/cifs/cifssmb.c
@@ -1393,7 +1393,7 @@ int
1393CIFS_open(const unsigned int xid, struct cifs_open_parms *oparms, int *oplock, 1393CIFS_open(const unsigned int xid, struct cifs_open_parms *oparms, int *oplock,
1394 FILE_ALL_INFO *buf) 1394 FILE_ALL_INFO *buf)
1395{ 1395{
1396 int rc = -EACCES; 1396 int rc;
1397 OPEN_REQ *req = NULL; 1397 OPEN_REQ *req = NULL;
1398 OPEN_RSP *rsp = NULL; 1398 OPEN_RSP *rsp = NULL;
1399 int bytes_returned; 1399 int bytes_returned;