From ae6962d6df1aadf8c67606ad9b5bc54a36026878 Mon Sep 17 00:00:00 2001 From: cg Date: Sun, 8 Apr 2001 20:17:03 +0000 Subject: [PATCH] fix feeder initialisation methods to return correct result codes. --- sys/dev/sound/pcm/feeder_fmt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/sound/pcm/feeder_fmt.c b/sys/dev/sound/pcm/feeder_fmt.c index 49602e844df6..735a5acdb503 100644 --- a/sys/dev/sound/pcm/feeder_fmt.c +++ b/sys/dev/sound/pcm/feeder_fmt.c @@ -210,7 +210,7 @@ static int feed_16to8_init(struct pcm_feeder *f) { f->data = malloc(FEEDBUFSZ, M_FMTFEEDER, M_WAITOK | M_ZERO); - return (f->data == NULL)? 0 : ENOMEM; + return (f->data)? 0 : ENOMEM; } static int @@ -319,7 +319,7 @@ static int feed_stereotomono8_init(struct pcm_feeder *f) { f->data = malloc(FEEDBUFSZ, M_FMTFEEDER, M_WAITOK | M_ZERO); - return (f->data == NULL)? 0 : ENOMEM; + return (f->data)? 0 : ENOMEM; } static int @@ -364,7 +364,7 @@ static int feed_stereotomono16_init(struct pcm_feeder *f) { f->data = malloc(FEEDBUFSZ, M_FMTFEEDER, M_WAITOK | M_ZERO); - return (f->data == NULL)? 0 : ENOMEM; + return (f->data)? 0 : ENOMEM; } static int