From: Jesper Juhl Date: Tue, 28 Mar 2006 09:56:50 +0000 (-0800) Subject: [PATCH] no need to check vfree arg for null in oss/sequencer X-Git-Tag: v2.6.17-rc1~216 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a83fdddb8a104c021837637a59f93948b906819;p=linux-2.6 [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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/sound/oss/sequencer.c b/sound/oss/sequencer.c index 347cd79c25..6815c30e0b 100644 --- a/sound/oss/sequencer.c +++ b/sound/oss/sequencer.c @@ -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; }