ucm: check the correct return value for modifier

Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
This commit is contained in:
Liam Girdwood 2010-12-21 23:11:57 +01:00 committed by Jaroslav Kysela
parent ebb52f6911
commit 116fabd603

View file

@ -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) {