mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-28 23:50:26 +09:00
env: correct sign for error code
Error codes should be negative. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
878d885620
commit
9b57e252ff
@ -153,7 +153,7 @@ static int regex_callback(const char *name, const char *attributes, void *priv)
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
printf("Error compiling regex: %s\n", slre.err_str);
|
printf("Error compiling regex: %s\n", slre.err_str);
|
||||||
retval = EINVAL;
|
retval = -EINVAL;
|
||||||
}
|
}
|
||||||
done:
|
done:
|
||||||
return retval;
|
return retval;
|
||||||
|
Loading…
Reference in New Issue
Block a user