mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-03-04 01:40:09 -05:00
ucm: check the correct return value for modifier
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
This commit is contained in:
parent
ebb52f6911
commit
116fabd603
1 changed files with 1 additions and 1 deletions
|
|
@ -1321,7 +1321,7 @@ static int switch_modifier(snd_use_case_mgr_t *uc_mgr,
|
||||||
if (xold == NULL)
|
if (xold == NULL)
|
||||||
return -ENOENT;
|
return -ENOENT;
|
||||||
xnew = find_modifier(uc_mgr->active_verb, new_modifier);
|
xnew = find_modifier(uc_mgr->active_verb, new_modifier);
|
||||||
if (xold == NULL)
|
if (xnew == NULL)
|
||||||
return -ENOENT;
|
return -ENOENT;
|
||||||
err = 0;
|
err = 0;
|
||||||
list_for_each(pos, &xold->transition_list) {
|
list_for_each(pos, &xold->transition_list) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue