[alsa-devel] [PATCH 1/3] ucm: fix incorrect error code sign
Tanu Kaskinen
tanu.kaskinen at linux.intel.com
Tue Feb 17 20:15:21 CET 2015
Reported-by: Takashi Iwai <tiwai at suse.de>
Signed-off-by: Tanu Kaskinen <tanu.kaskinen at 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;
--
1.9.3
More information about the Alsa-devel
mailing list