Skip to content

Commit

Permalink
[PATCH] no need to check vfree arg for null in oss/sequencer
Browse files Browse the repository at this point in the history
There's no need to check pointers for NULL before handing them to vfree().

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>
  • Loading branch information
Jesper Juhl authored and Linus Torvalds committed Mar 28, 2006
1 parent 07e0e93 commit 5a83fdd
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions sound/oss/sequencer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1671,14 +1671,7 @@ void sequencer_init(void)

void sequencer_unload(void)
{
if(queue)
{
vfree(queue);
queue=NULL;
}
if(iqueue)
{
vfree(iqueue);
iqueue=NULL;
}
vfree(queue);
vfree(iqueue);
queue = iqueue = NULL;
}

0 comments on commit 5a83fdd

Please sign in to comment.