Skip to content

Commit

Permalink
post: remove redundant condition
Browse files Browse the repository at this point in the history
(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>
  • Loading branch information
xypron authored and trini committed Oct 23, 2020
1 parent 001ab99 commit 86eeac7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion post/post.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 86eeac7

Please sign in to comment.