post: remove redundant condition

(A && A == 0x20) is only true for (A == 0x20).

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Heinrich Schuchardt 2020-08-03 22:12:13 +02:00 committed by Tom Rini
parent 001ab99325
commit 86eeac7bcf
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ static void post_get_env_flags(int *test_flags)
last = 0;
name = list;
while (!last) {
while (*name && *name == ' ')
while (*name == ' ')
name++;
if (*name == 0)
break;