summaryrefslogtreecommitdiff
path: root/platform/x11/power_x11.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'platform/x11/power_x11.cpp')
-rw-r--r--platform/x11/power_x11.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/x11/power_x11.cpp b/platform/x11/power_x11.cpp
index 943c2b1383..50da6a4967 100644
--- a/platform/x11/power_x11.cpp
+++ b/platform/x11/power_x11.cpp
@@ -115,7 +115,7 @@ bool PowerX11::make_proc_acpi_key_val(char **_ptr, char **_key, char **_val) {
*(ptr++) = '\0'; /* terminate the key. */
- while ((*ptr == ' ') && (*ptr != '\0')) {
+ while (*ptr == ' ') {
ptr++; /* skip whitespace. */
}