]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] vfree NULL check fixup for sb_card
authorJesper Juhl <jesper.juhl@gmail.com>
Tue, 28 Mar 2006 09:56:49 +0000 (01:56 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 28 Mar 2006 17:16:07 +0000 (09:16 -0800)
There's no need to check the vfree() argument for NULL.

Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
sound/oss/sb_card.c

index d38e88abc8fac32510159d8d885e6cb78ad2d3fa..4708cbdc31497edded137e77ed4fc1b181856861 100644 (file)
@@ -348,10 +348,8 @@ static void __exit sb_exit(void)
 
        sb_unregister_all();
 
-       if (smw_free) {
-               vfree(smw_free);
-               smw_free = NULL;
-       }
+       vfree(smw_free);
+       smw_free = NULL;
 }
 
 module_init(sb_init);