Skip to contentSkip to conversation

vfree() checks for NULL, no need to do it explicitly

PATCH New Jesper Juhl 1 participant 1 message Feb 4, 2006 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vfree() checks for NULL, no need to do it explicitly

vfree() checks for NULL, no need to do it explicitly.

---

 sound/oss/maestro3.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
sound/oss/maestro3.c +2 -2
@@ -2580,10 +2580,10 @@ static int alloc_dsp_suspendmem(struct m
 
     return 0;
 }
+
 static void free_dsp_suspendmem(struct m3_card *card)
 {
-   if(card->suspend_mem)
-       vfree(card->suspend_mem);
+    vfree(card->suspend_mem);
 }
 
 #else