mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-03 09:01:52 -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)
|
||||
return -ENOENT;
|
||||
xnew = find_modifier(uc_mgr->active_verb, new_modifier);
|
||||
if (xold == NULL)
|
||||
if (xnew == NULL)
|
||||
return -ENOENT;
|
||||
err = 0;
|
||||
list_for_each(pos, &xold->transition_list) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue