aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--brightnessctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/brightnessctl.c b/brightnessctl.c
index 8edea68..eb3ce3c 100644
--- a/brightnessctl.c
+++ b/brightnessctl.c
@@ -399,7 +399,7 @@ dfail:
perror("Error reading device");
error++;
}
- return error;
+ return !error;
}
int read_class(struct device **devs, char *class) {