summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiam Girdwood <lrg@slimlogic.co.uk>2010-12-21 23:11:57 +0100
committerJaroslav Kysela <perex@perex.cz>2010-12-22 08:05:57 +0100
commit116fabd6039ed04ee4a65098e936a1691a7b3956 (patch)
tree0559a8522449a17d5a99b8b74a04ae5990e6617c
parentebb52f69117f9975de46623f5ba32f3c081fe691 (diff)
downloadalsa-lib-116fabd6039ed04ee4a65098e936a1691a7b3956.tar.gz
ucm: check the correct return value for modifier
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
-rw-r--r--src/ucm/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ucm/main.c b/src/ucm/main.c
index aafa4839..a3af3aad 100644
--- a/src/ucm/main.c
+++ b/src/ucm/main.c
@@ -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) {