summaryrefslogtreecommitdiff
path: root/src/shared/efivars.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-08-11 18:35:54 +0200
committerLennart Poettering <lennart@poettering.net>2014-08-11 18:35:54 +0200
commit7e8185ef942de5acecfa4cda03d7d7711ddda992 (patch)
treedf2d7989fb1769e9ea9d3981d7d1a55b4f59f876 /src/shared/efivars.c
parentd7bf74d9cccdc6ffa567ea0e08f814863610f88e (diff)
fix a couple of more lazy "return -1"
Fix should strictly follow the rule to return negative errno-style error codes from functions, hence let's fix more "return -1"-style lazinesses.
Diffstat (limited to 'src/shared/efivars.c')
-rw-r--r--src/shared/efivars.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/efivars.c b/src/shared/efivars.c
index f18f5c4b16..a319574527 100644
--- a/src/shared/efivars.c
+++ b/src/shared/efivars.c
@@ -330,7 +330,7 @@ static int boot_id_hex(const char s[4]) {
else if (s[i] >= 'A' && s[i] <= 'F')
id |= (s[i] - 'A' + 10) << (3 - i) * 4;
else
- return -1;
+ return -EINVAL;
return id;
}