fix feeder initialisation methods to return correct result codes.

This commit is contained in:
Cameron Grant 2001-04-08 20:17:03 +00:00
parent 2753645ced
commit 7c3968cc32
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=75318

View file

@ -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