]> git.alsa-project.org Git - alsa-lib.git/commit
ucm: optimize if_eval_string with common comparison helper
authorJaroslav Kysela <perex@perex.cz>
Fri, 6 Feb 2026 17:25:01 +0000 (18:25 +0100)
committerJaroslav Kysela <perex@perex.cz>
Fri, 6 Feb 2026 18:32:31 +0000 (19:32 +0100)
commit30d1ae7221fc4951d15887872650d04c8d7d2d59
treeb1d328819069423afa2b2b775ccd2446b90311d1
parent27aa3e41ef1b80a87800afd8b2e718d8e67ad54c
ucm: optimize if_eval_string with common comparison helper

Refactor if_eval_string() to eliminate code duplication by introducing
a compare_strings() helper function that handles the common pattern of
retrieving, substituting, and comparing string pairs.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/ucm/ucm_cond.c