mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-04 13:30:08 -05:00
ucm: fix the wrong return value in uc_mgr_open_ctl()
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
9b5fde5054
commit
6fad36dd38
1 changed files with 1 additions and 1 deletions
|
|
@ -274,7 +274,7 @@ int uc_mgr_open_ctl(snd_use_case_mgr_t *uc_mgr,
|
||||||
if (err < 0 || id == NULL || id[0] == '\0') {
|
if (err < 0 || id == NULL || id[0] == '\0') {
|
||||||
uc_error("control hardware info (%s): %s", device, snd_strerror(err));
|
uc_error("control hardware info (%s): %s", device, snd_strerror(err));
|
||||||
snd_ctl_close(ctl);
|
snd_ctl_close(ctl);
|
||||||
return err;
|
return err >= 0 ? -EINVAL : err;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* insert to cache, if just name differs */
|
/* insert to cache, if just name differs */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue