summaryrefslogtreecommitdiff
path: root/src/backlight
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-11-02 23:07:58 +0100
committerLennart Poettering <lennart@poettering.net>2015-11-02 23:44:05 +0100
commit934ae16baf543af03f3f521277d14524ca772d17 (patch)
tree2c71fd536c9b911f2cfc7c749d844cb33bcb52ea /src/backlight
parent19854865a877a3a4fa3d04550c15a99c0e1187ff (diff)
downloadsystemd-934ae16baf543af03f3f521277d14524ca772d17.tar.gz
proc-cmdline: return proper errors from shall_restore_state()
Let's not eat up errors in shall_restore_state(), but in the consumers instead, just for the sake of keeping the library calls generic.
Diffstat (limited to 'src/backlight')
-rw-r--r--src/backlight/backlight.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backlight/backlight.c b/src/backlight/backlight.c
index 08980fba82..b0fa079fec 100644
--- a/src/backlight/backlight.c
+++ b/src/backlight/backlight.c
@@ -381,7 +381,7 @@ int main(int argc, char *argv[]) {
_cleanup_free_ char *value = NULL;
const char *clamp;
- if (!shall_restore_state())
+ if (shall_restore_state() == 0)
return EXIT_SUCCESS;
if (!validate_device(udev, device))