Skip to content

Commit

Permalink
[PATCH] vfree does its own NULL check, no need to be explicit in oss/…
Browse files Browse the repository at this point in the history
…msnd.c

vfree() does it's own NULL checking, no need for explicit check before
calling it.

Signed-off-by: Jesper Juhl <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Jesper Juhl authored and Linus Torvalds committed Mar 28, 2006
1 parent 5a83fdd commit ca43b31
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions sound/oss/msnd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ca43b31

Please sign in to comment.