* [PATCH][OSS][Multisound] vfree does own NULL checking, no need for own explicit check.
@ 2006-02-04 20:09 Jesper Juhl
0 siblings, 0 replies; only message in thread
From: Jesper Juhl @ 2006-02-04 20:09 UTC (permalink / raw)
To: Linux Kernel Mailing List; +Cc: Andrew Veliath, Jesper Juhl
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)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-02-04 20:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-04 20:09 [PATCH][OSS][Multisound] vfree does own NULL checking, no need for own explicit check Jesper Juhl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome