From: Jesper Juhl Date: Tue, 28 Mar 2006 09:56:51 +0000 (-0800) Subject: [PATCH] vfree does its own NULL check, no need to be explicit in oss/msnd.c X-Git-Tag: firefly_0821_release~36638 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ca43b317fc557bbcca845c684d93375286bf9e0b;p=firefly-linux-kernel-4.4.55.git [PATCH] vfree does its own NULL check, no need to be explicit in oss/msnd.c vfree() does it's own NULL checking, no need for explicit check before calling it. Signed-off-by: Jesper Juhl Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/sound/oss/msnd.c b/sound/oss/msnd.c index a7ad2b0a2ac0..5dbfc0f9c3c7 100644 --- a/sound/oss/msnd.c +++ b/sound/oss/msnd.c @@ -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)