From 457d3d432bede99ed04d3bdeb5efb238a3627e8f Mon Sep 17 00:00:00 2001 From: Jesper Juhl <jesper.juhl@gmail.com> Date: Tue, 28 Mar 2006 01:56:49 -0800 Subject: [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> --- sound/oss/sb_card.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'sound/oss/sb_card.c') diff --git a/sound/oss/sb_card.c b/sound/oss/sb_card.c index d38e88abc8fa..4708cbdc3149 100644 --- a/sound/oss/sb_card.c +++ b/sound/oss/sb_card.c @@ -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); -- cgit v1.2.3