projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
910638a
)
[PATCH] vfree NULL check fixup for sb_card
author
Jesper Juhl
<jesper.juhl@gmail.com>
Tue, 28 Mar 2006 09:56:49 +0000
(
01:56
-0800)
committer
Linus 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
patch
|
blob
|
blame
|
history
diff --git
a/sound/oss/sb_card.c
b/sound/oss/sb_card.c
index d38e88abc8fac32510159d8d885e6cb78ad2d3fa..4708cbdc31497edded137e77ed4fc1b181856861 100644
(file)
--- 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);