summaryrefslogtreecommitdiff
path: root/fs/cifs/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs/file.c')
-rw-r--r--fs/cifs/file.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/cifs/file.c b/fs/cifs/file.c
index 075f7cfd1da5..7d7bbdc4c8e7 100644
--- a/fs/cifs/file.c
+++ b/fs/cifs/file.c
@@ -355,12 +355,11 @@ void cifsFileInfo_put(struct cifsFileInfo *cifs_file)
if (!tcon->need_reconnect && !cifs_file->invalidHandle) {
struct TCP_Server_Info *server = tcon->ses->server;
unsigned int xid;
- int rc = -ENOSYS;
xid = get_xid();
if (server->ops->close)
- rc = server->ops->close(xid, tcon, &cifs_file->fid);
- free_xid(xid);
+ server->ops->close(xid, tcon, &cifs_file->fid);
+ _free_xid(xid);
}
cifs_del_pending_open(&open);