Skip to contentSkip to conversation

vfree does own NULL checking, no need for own explicit check.

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

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vfree does own NULL checking, no need for own explicit check.

vfree() does it's own NULL checking, no need for explicit check before calling it.

---

 sound/oss/msnd.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
sound/oss/msnd.c +2 -4
@@ -95,10 +95,8 @@ void msnd_fifo_init(msnd_fifo *f)
 
 void msnd_fifo_free(msnd_fifo *f)
 {
-	if (f->data) {
-		vfree(f->data);
-		f->data = NULL;
-	}
+	vfree(f->data);
+	f->data = NULL;
 }
 
 int msnd_fifo_alloc(msnd_fifo *f, size_t n)