diff options
author | cg <cg@FreeBSD.org> | 2001-04-08 20:17:03 +0000 |
---|---|---|
committer | cg <cg@FreeBSD.org> | 2001-04-08 20:17:03 +0000 |
commit | ae6962d6df1aadf8c67606ad9b5bc54a36026878 (patch) | |
tree | 770332d3ea3971ea11bfea8b53b2efc92ee85b4e | |
parent | d51c99ac75e43f62b30f2a2265e96081da4d5a06 (diff) | |
download | FreeBSD-src-ae6962d6df1aadf8c67606ad9b5bc54a36026878.zip FreeBSD-src-ae6962d6df1aadf8c67606ad9b5bc54a36026878.tar.gz |
fix feeder initialisation methods to return correct result codes.
-rw-r--r-- | sys/dev/sound/pcm/feeder_fmt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/sound/pcm/feeder_fmt.c b/sys/dev/sound/pcm/feeder_fmt.c index 49602e8..735a5ac 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 |