summaryrefslogtreecommitdiff
path: root/ubi-utils/src/libubi.c
diff options
context:
space:
mode:
Diffstat (limited to 'ubi-utils/src/libubi.c')
-rw-r--r--ubi-utils/src/libubi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ubi-utils/src/libubi.c b/ubi-utils/src/libubi.c
index ecc12b4..a9c4a99 100644
--- a/ubi-utils/src/libubi.c
+++ b/ubi-utils/src/libubi.c
@@ -412,7 +412,7 @@ static int vol_node2nums(struct libubi *lib, const char *node, int *dev_num,
if (minor == 0) {
errmsg("\"%s\" is not a volume character device", node);
- errno = -EINVAL;
+ errno = EINVAL;
return -1;
}
@@ -479,7 +479,7 @@ static int dev_node2num(struct libubi *lib, const char *node, int *dev_num)
if (minor != 0) {
errmsg("\"%s\" is not an UBI character device", node);
- errno = -EINVAL;
+ errno = EINVAL;
return -1;
}