Commit 5a83fddd authored by Jesper Juhl's avatar Jesper Juhl Committed by Linus Torvalds

[PATCH] no need to check vfree arg for null in oss/sequencer

There's no need to check pointers for NULL before handing them to vfree().
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 07e0e93d
...@@ -1671,14 +1671,7 @@ void sequencer_init(void) ...@@ -1671,14 +1671,7 @@ void sequencer_init(void)
void sequencer_unload(void) void sequencer_unload(void)
{ {
if(queue) vfree(queue);
{ vfree(iqueue);
vfree(queue); queue = iqueue = NULL;
queue=NULL;
}
if(iqueue)
{
vfree(iqueue);
iqueue=NULL;
}
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment