From 25d53a44754007e283810e34aa112f3e1ff66c4c Mon Sep 17 00:00:00 2001 From: Sylvain Becker Date: Wed, 30 Oct 2019 16:12:39 +0100 Subject: [PATCH] SDL_syspower.c: remove redundant expression --- src/power/linux/SDL_syspower.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/power/linux/SDL_syspower.c b/src/power/linux/SDL_syspower.c index 38b3cae7f..9aa93b44a 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. */ }