summaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsfs.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-06-17 09:27:16 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2011-06-24 18:39:42 -0400
commit2a9b99516c662d1713d58648e4a4c9aef72051bc (patch)
tree3c85e9cbe43af86d647b3c4d658955c82dc5fb7f /fs/cifs/cifsfs.c
parent2ced6f693581357b2a5bf8b031a702c624b12d0d (diff)
sanitize cifs_umount() prototype
a) superblock argument is unused b) it always returns 0 Acked-by: Pavel Shilovsky <piastryyy@gmail.com> Reviewed-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/cifs/cifsfs.c')
-rw-r--r--fs/cifs/cifsfs.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c
index 61c7aa870f1..2af14d4577a 100644
--- a/fs/cifs/cifsfs.c
+++ b/fs/cifs/cifsfs.c
@@ -172,7 +172,7 @@ out_no_root:
if (inode)
iput(inode);
- cifs_umount(sb, cifs_sb);
+ cifs_umount(cifs_sb);
return rc;
}
@@ -189,9 +189,7 @@ cifs_put_super(struct super_block *sb)
return;
}
- rc = cifs_umount(sb, cifs_sb);
- if (rc)
- cERROR(1, "cifs_umount failed with return code %d", rc);
+ cifs_umount(cifs_sb);
}
static void cifs_kill_sb(struct super_block *sb)