Skip to contentSkip to conversation

Remove redundant check from autofs4_put_super

PATCH Dave Jones 1 participant 1 message Mar 9, 2006

lore
Share & tools
lore

Dave Jones

author
#0 lore raw

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

fs/autofs4/inode.c renamed from fs/autofs4/inode.c~ +1 -2
@@ -145,8 +145,7 @@ static void autofs4_put_super(struct sup
 		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);
 
Signature · 1 line
http://www.codemonkey.org.uk