[PATCH] vfree NULL check fixup for sb_card 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>
diff --git a/sound/oss/sb_card.c b/sound/oss/sb_card.c index d38e88a..4708cbd 100644 --- a/sound/oss/sb_card.c +++ b/sound/oss/sb_card.c
@@ -348,10 +348,8 @@ sb_unregister_all(); - if (smw_free) { - vfree(smw_free); - smw_free = NULL; - } + vfree(smw_free); + smw_free = NULL; } module_init(sb_init);