diff options
author | Jaroslav Kysela <perex@perex.cz> | 2023-01-15 18:57:56 +0100 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2023-01-15 18:57:56 +0100 |
commit | 496c4e031b49216c2fcda83c052cc243ba425a76 (patch) | |
tree | f0bf7c4f5b73868a94ca58b8c30d1dbfe0749418 | |
parent | c083417b723a3485657234a21da3264419da1411 (diff) | |
download | alsa-lib-496c4e031b49216c2fcda83c052cc243ba425a76.tar.gz |
ucm: fix geti() macro - return zero on success
Fixes: c083417b ("ucm: simplify and fix the previous patch (geti)")
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
-rw-r--r-- | src/ucm/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ucm/main.c b/src/ucm/main.c index 346c5dc8..66ffd00d 100644 --- a/src/ucm/main.c +++ b/src/ucm/main.c @@ -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; \ } \ |