Reported-by: Takashi Iwai tiwai@suse.de Signed-off-by: Tanu Kaskinen tanu.kaskinen@linux.intel.com --- src/ucm/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/ucm/main.c b/src/ucm/main.c index 3924aee..efb5be5 100644 --- a/src/ucm/main.c +++ b/src/ucm/main.c @@ -304,7 +304,7 @@ static int execute_sequence(snd_use_case_mgr_t *uc_mgr, value_list1, value_list2, value_list3); - if (err < 0 && err != ENOENT) { + if (err < 0 && err != -ENOENT) { uc_error("cdev is not defined!"); return err; } @@ -312,7 +312,7 @@ static int execute_sequence(snd_use_case_mgr_t *uc_mgr, value_list1, value_list2, value_list3); - if (err < 0 && err != ENOENT) { + if (err < 0 && err != -ENOENT) { free((char *)cdev1); uc_error("cdev is not defined!"); return err;