Skip to contentSkip to conversation

no need to check vfree arg for null in oss/sequencer

PATCH In review Jesper Juhl 1 participant 1 message Feb 24, 2006 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 9/13 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().

---

 sound/oss/sequencer.c |   13 +++----------
 1 files changed, 3 insertions(+), 10 deletions(-)
sound/oss/sequencer.c +3 -10
@@ -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;
 }