lkml.org 
[lkml]   [2006]   [Feb]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH][OSS][Multisound] vfree does own NULL checking, no need for own explicit check.
Date
vfree() does it's own NULL checking, no need for explicit check before 
calling it.


Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
---

sound/oss/msnd.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)

--- linux-2.6.16-rc2-git1-orig/sound/oss/msnd.c 2006-01-03 04:21:10.000000000 +0100
+++ linux-2.6.16-rc2-git1/sound/oss/msnd.c 2006-02-04 21:05:32.000000000 +0100
@@ -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)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-02-04 21:11    [W:0.051 / U:0.444 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site