Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ca43b317 authored by Jesper Juhl's avatar Jesper Juhl Committed by Linus Torvalds
Browse files

[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: default avatarJesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 5a83fddd
Loading
Loading
Loading
Loading
+2 −4
Original line number Original line Diff line number Diff line
@@ -95,11 +95,9 @@ void msnd_fifo_init(msnd_fifo *f)


void msnd_fifo_free(msnd_fifo *f)
void msnd_fifo_free(msnd_fifo *f)
{
{
	if (f->data) {
	vfree(f->data);
	vfree(f->data);
	f->data = NULL;
	f->data = NULL;
}
}
}


int msnd_fifo_alloc(msnd_fifo *f, size_t n)
int msnd_fifo_alloc(msnd_fifo *f, size_t n)
{
{