ucm: fix incorrect error code sign

Reported-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Tanu Kaskinen <tanu.kaskinen@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Tanu Kaskinen 2015-02-17 21:15:21 +02:00 committed by Takashi Iwai
parent 4f045ac81e
commit 1dd239b781

View file

@ -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;