Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3370c74b authored by Dave Jones's avatar Dave Jones Committed by Linus Torvalds
Browse files

[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: default avatarDave Jones <davej@redhat.com>
Cc: Ian Kent <raven@themaw.net>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 44d53eb0
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -157,7 +157,6 @@ 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);

	kfree(sbi);