提交 5a83fddd 编写于 作者: J Jesper Juhl 提交者: 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: NJesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 07e0e93d
......@@ -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;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册