CIFS: Make ops->close return void
Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru>
Signed-off-by: Steve French <smfrench@gmail.com>
diff --git a/fs/cifs/file.c b/fs/cifs/file.c
index 075f7cf..7d7bbdc 100644
--- a/fs/cifs/file.c
+++ b/fs/cifs/file.c
@@ -355,12 +355,11 @@
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);