1
0
Fork 0

[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: Jesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
hifive-unleashed-5.1
Jesper Juhl 2006-03-28 01:56:50 -08:00 committed by Linus Torvalds
parent 07e0e93d9a
commit 5a83fdddb8
1 changed files with 3 additions and 10 deletions

View File

@ -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;
}