diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-06-17 09:27:16 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-06-24 18:39:42 -0400 |
commit | 2a9b99516c662d1713d58648e4a4c9aef72051bc (patch) | |
tree | 3c85e9cbe43af86d647b3c4d658955c82dc5fb7f /fs/cifs/connect.c | |
parent | 2ced6f693581357b2a5bf8b031a702c624b12d0d (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/connect.c')
-rw-r--r-- | fs/cifs/connect.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 9f09adf51edc..b2702226634e 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c | |||
@@ -3339,8 +3339,8 @@ CIFSTCon(unsigned int xid, struct cifs_ses *ses, | |||
3339 | return rc; | 3339 | return rc; |
3340 | } | 3340 | } |
3341 | 3341 | ||
3342 | int | 3342 | void |
3343 | cifs_umount(struct super_block *sb, struct cifs_sb_info *cifs_sb) | 3343 | cifs_umount(struct cifs_sb_info *cifs_sb) |
3344 | { | 3344 | { |
3345 | struct rb_root *root = &cifs_sb->tlink_tree; | 3345 | struct rb_root *root = &cifs_sb->tlink_tree; |
3346 | struct rb_node *node; | 3346 | struct rb_node *node; |
@@ -3362,7 +3362,6 @@ cifs_umount(struct super_block *sb, struct cifs_sb_info *cifs_sb) | |||
3362 | spin_unlock(&cifs_sb->tlink_tree_lock); | 3362 | spin_unlock(&cifs_sb->tlink_tree_lock); |
3363 | 3363 | ||
3364 | bdi_destroy(&cifs_sb->bdi); | 3364 | bdi_destroy(&cifs_sb->bdi); |
3365 | return 0; | ||
3366 | } | 3365 | } |
3367 | 3366 | ||
3368 | int cifs_negotiate_protocol(unsigned int xid, struct cifs_ses *ses) | 3367 | int cifs_negotiate_protocol(unsigned int xid, struct cifs_ses *ses) |