Merge pull request #5619 from lunixoid/master

Simplified condition in `while`
This commit is contained in:
Twinaphex 2017-10-29 01:55:42 +02:00 committed by GitHub
commit 5aba01ed26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -616,7 +616,7 @@ static bool 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. */
if (*ptr == '\0')