[alsa-devel] [PATCH 08/11] ucm: check the correct return value for modifier

Liam Girdwood lrg at slimlogic.co.uk
Tue Dec 21 23:11:57 CET 2010


Signed-off-by: Liam Girdwood <lrg at slimlogic.co.uk>
---
 src/ucm/main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/ucm/main.c b/src/ucm/main.c
index 3a61679..4c13547 100644
--- a/src/ucm/main.c
+++ b/src/ucm/main.c
@@ -1323,7 +1323,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) {
-- 
1.7.1



More information about the Alsa-devel mailing list