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

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;