]> git.alsa-project.org Git - alsa-lib.git/commitdiff
ucm: fix geti() macro - return zero on success
authorJaroslav Kysela <perex@perex.cz>
Sun, 15 Jan 2023 17:57:56 +0000 (18:57 +0100)
committerJaroslav Kysela <perex@perex.cz>
Sun, 15 Jan 2023 17:57:56 +0000 (18:57 +0100)
Fixes: c083417b ("ucm: simplify and fix the previous patch (geti)")
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/ucm/main.c

index 346c5dc8dd8bb9cb5e24b5d110876d3052b52f5d..66ffd00d1169f6c7e0b718ab1024355635f28fd4 100644 (file)
@@ -2425,6 +2425,7 @@ int snd_use_case_get(snd_use_case_mgr_t *uc_mgr,
                if (val >= 0) { \
                        if ((ifind)((uc_mgr), (uc_mgr)->active_verb, (str), 0)) { \
                                *(value) = val; \
+                               val = 0; \
                        } else { \
                                val = -ENOENT; \
                        } \