mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-02 09:01:48 -05:00
Fix error code in timer_query.c
Fix the returned error code for the invalid timer definition.
This commit is contained in:
parent
31910617f2
commit
6972e3e585
1 changed files with 1 additions and 0 deletions
|
|
@ -77,6 +77,7 @@ static int snd_timer_query_open_conf(snd_timer_query_t **timer,
|
||||||
if (err >= 0) {
|
if (err >= 0) {
|
||||||
if (snd_config_get_type(type_conf) != SND_CONFIG_TYPE_COMPOUND) {
|
if (snd_config_get_type(type_conf) != SND_CONFIG_TYPE_COMPOUND) {
|
||||||
SNDERR("Invalid type for TIMER type %s definition", str);
|
SNDERR("Invalid type for TIMER type %s definition", str);
|
||||||
|
err = -EINVAL;
|
||||||
goto _err;
|
goto _err;
|
||||||
}
|
}
|
||||||
snd_config_for_each(i, next, type_conf) {
|
snd_config_for_each(i, next, type_conf) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue