Explorar o código

SDL_syspower.c: remove redundant expression

Sylvain Becker %!s(int64=5) %!d(string=hai) anos
pai
achega
25d53a4475
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/power/linux/SDL_syspower.c

+ 1 - 1
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. */
     }