Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

[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
Loading
Loading
Loading
Loading
+3 −10
Original line number Diff line number Diff line
@@ -1670,15 +1670,8 @@ void sequencer_init(void)
}

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