[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>
This commit is contained in:
Dave Jones 2006-03-27 01:14:57 -08:00 committed by Linus Torvalds
parent 44d53eb041
commit 3370c74b2e
1 changed files with 1 additions and 2 deletions

View File

@ -157,8 +157,7 @@ static void autofs4_put_super(struct super_block *sb)
autofs4_catatonic_mode(sbi); /* Free wait queues, close pipe */ autofs4_catatonic_mode(sbi); /* Free wait queues, close pipe */
/* Clean up and release dangling references */ /* Clean up and release dangling references */
if (sbi) autofs4_force_release(sbi);
autofs4_force_release(sbi);
kfree(sbi); kfree(sbi);