mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-18 22:33:39 +00:00
fix feeder initialisation methods to return correct result codes.
This commit is contained in:
parent
2753645ced
commit
7c3968cc32
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=75318
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue