summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxypron.glpk@gmx.de <xypron.glpk@gmx.de>2017-05-08 19:30:58 +0200
committerTom Rini <trini@konsulko.com>2017-05-12 08:37:16 -0400
commit9b57e252ffb85b175b0818bf01fb20086d788f5d (patch)
tree7999c644ccf445590cb0cc69207eeaa63b906825
parent878d8856205d7cc73331ee3ef571a7bc1a619693 (diff)
downloadu-boot-9b57e252ffb85b175b0818bf01fb20086d788f5d.tar.gz
u-boot-9b57e252ffb85b175b0818bf01fb20086d788f5d.tar.xz
u-boot-9b57e252ffb85b175b0818bf01fb20086d788f5d.zip
env: correct sign for error code
Error codes should be negative. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
-rw-r--r--common/env_attr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/env_attr.c b/common/env_attr.c
index 5bfe5e3a89..386219087b 100644
--- a/common/env_attr.c
+++ b/common/env_attr.c
@@ -153,7 +153,7 @@ static int regex_callback(const char *name, const char *attributes, void *priv)
}
} else {
printf("Error compiling regex: %s\n", slre.err_str);
- retval = EINVAL;
+ retval = -EINVAL;
}
done:
return retval;