[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>
This commit is contained in:
Родитель
07e0e93d9a
Коммит
5a83fdddb8
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче