projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a83fdd
)
[PATCH] vfree does its own NULL check, no need to be explicit in oss/msnd.c
author
Jesper Juhl
<jesper.juhl@gmail.com>
Tue, 28 Mar 2006 09:56:51 +0000
(
01:56
-0800)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Tue, 28 Mar 2006 17:16:08 +0000
(09:16 -0800)
vfree() does it's own NULL checking, no need for explicit check before
calling it.
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/msnd.c
patch
|
blob
|
history
diff --git
a/sound/oss/msnd.c
b/sound/oss/msnd.c
index
a7ad2b0
..
5dbfc0f
100644
(file)
--- a/
sound/oss/msnd.c
+++ b/
sound/oss/msnd.c
@@
-95,10
+95,8
@@
void msnd_fifo_init(msnd_fifo *f)
void msnd_fifo_free(msnd_fifo *f)
{
- if (f->data) {
- vfree(f->data);
- f->data = NULL;
- }
+ vfree(f->data);
+ f->data = NULL;
}
int msnd_fifo_alloc(msnd_fifo *f, size_t n)