]> git.alsa-project.org Git - alsa-lib.git/commitdiff
ucm: check the correct return value for modifier
authorLiam Girdwood <lrg@slimlogic.co.uk>
Tue, 21 Dec 2010 22:11:57 +0000 (23:11 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 22 Dec 2010 07:05:57 +0000 (08:05 +0100)
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
src/ucm/main.c

index aafa4839d55e623a6c0567a49240e708120b1f01..a3af3aadedd26e69a1a3a71ae3e258d23d1d1900 100644 (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) {