Sfoglia il codice sorgente

SDL_syspower.c: remove redundant expression

Sylvain Becker 5 anni fa
parent
commit
25d53a4475
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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. */
     }