From 64e50f750cb3fb64af10384d323a84d4702c982d Mon Sep 17 00:00:00 2001
From: Andre Noll <maan@congo.fml.local>
Date: Wed, 23 Aug 2006 12:19:13 +0200
Subject: [PATCH] osx_write.c: trivial simplifications

(a) Kill an outdated comment
(b) free(NULL) is okay
---
 osx_write.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/osx_write.c b/osx_write.c
index 7e825f71..885c05d1 100644
--- a/osx_write.c
+++ b/osx_write.c
@@ -93,7 +93,6 @@ static void init_buffers(struct private_osx_write_data *powd)
 		(*ptrptr)->remaining = 0;
 		(*ptrptr)->buffer = NULL;
 		ptrptr = &(*ptrptr)->next;
-		/* This buffer is ready for filling (of course, it is empty!) */
 	}
 	*ptrptr = powd->from = powd->to;
 }
@@ -110,8 +109,7 @@ static void fill_buffer(osx_buffer *b, short *source, long size)
 		 * Hey! What's that? Coudn't this buffer size be fixed
 		 * once (well, perhaps we just didn't allocate it yet)
 		 */
-		if (b->buffer)
-			free(b->buffer);
+		free(b->buffer);
 		b->buffer = malloc(size * sizeof(float));
 		b->size = size;
 	}
-- 
2.39.5