[PATCH] vfree does its own NULL check, no need to be explicit in oss/msnd.c
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>
This commit is contained in:
parent
5a83fdddb8
commit
ca43b317fc
1 changed files with 2 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue