Commit 25d53a44754007e283810e34aa112f3e1ff66c4c

Sylvain Becker 2019-10-30T16:12:39

SDL_syspower.c: remove redundant expression

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/power/linux/SDL_syspower.c b/src/power/linux/SDL_syspower.c
index 38b3cae..9aa93b4 100644
--- a/src/power/linux/SDL_syspower.c
+++ b/src/power/linux/SDL_syspower.c
@@ -99,7 +99,7 @@ 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. */
     }