diff options
author | Dave Jones <davej@redhat.com> | 2006-03-27 11:14:57 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-27 18:44:41 +0200 |
commit | 3370c74b2e147169d5bba6665e03d3281f5795ed (patch) | |
tree | bf9a4b2d733605c539ebfb731bac21034adc53d9 /fs/autofs4 | |
parent | [PATCH] autofs4: change AUTOFS_TYP_* AUTOFS_TYPE_* (diff) | |
download | linux-3370c74b2e147169d5bba6665e03d3281f5795ed.tar.xz linux-3370c74b2e147169d5bba6665e03d3281f5795ed.zip |
[PATCH] Remove redundant check from autofs4_put_super
We have to have a valid sbi here, or we'd have oopsed already. (There's a
dereference of sbi->catatonic a few lines above)
Coverity #740
Signed-off-by: Dave Jones <davej@redhat.com>
Cc: Ian Kent <raven@themaw.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/autofs4')
-rw-r--r-- | fs/autofs4/inode.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/autofs4/inode.c b/fs/autofs4/inode.c index 943888905493..4eddee4e76fc 100644 --- a/fs/autofs4/inode.c +++ b/fs/autofs4/inode.c @@ -157,8 +157,7 @@ static void autofs4_put_super(struct super_block *sb) autofs4_catatonic_mode(sbi); /* Free wait queues, close pipe */ /* Clean up and release dangling references */ - if (sbi) - autofs4_force_release(sbi); + autofs4_force_release(sbi); kfree(sbi); |