aboutsummaryrefslogtreecommitdiffstats
path: root/sound/oss
diff options
context:
space:
mode:
authorJesper Juhl <jesper.juhl@gmail.com>2006-03-28 01:56:49 -0800
committerLinus Torvalds <torvalds@g5.osdl.org>2006-03-28 09:16:07 -0800
commit457d3d432bede99ed04d3bdeb5efb238a3627e8f (patch)
tree164c91effb78a8d447a0708fecb12dea3e1c71af /sound/oss
parent[PATCH] Replace 0xff.. with correct DMA_xBIT_MASK (diff)
downloadlinux-dev-457d3d432bede99ed04d3bdeb5efb238a3627e8f.tar.xz
linux-dev-457d3d432bede99ed04d3bdeb5efb238a3627e8f.zip
[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>
Diffstat (limited to 'sound/oss')
-rw-r--r--sound/oss/sb_card.c6
1 files changed, 2 insertions, 4 deletions
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);