mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-04 13:30:08 -05:00
conf: return negative value in case of error
Signed-off-by: renu tyagi <renu.tyagi@samsung.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
69e0aaa569
commit
b356cd29f9
1 changed files with 1 additions and 0 deletions
|
|
@ -4198,6 +4198,7 @@ static int _snd_config_evaluate(snd_config_t *src,
|
||||||
snd_config_iterator_t i, next;
|
snd_config_iterator_t i, next;
|
||||||
if (snd_config_get_type(func_conf) != SND_CONFIG_TYPE_COMPOUND) {
|
if (snd_config_get_type(func_conf) != SND_CONFIG_TYPE_COMPOUND) {
|
||||||
SNDERR("Invalid type for func %s definition", str);
|
SNDERR("Invalid type for func %s definition", str);
|
||||||
|
err = -EINVAL;
|
||||||
goto _err;
|
goto _err;
|
||||||
}
|
}
|
||||||
snd_config_for_each(i, next, func_conf) {
|
snd_config_for_each(i, next, func_conf) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue