aboutsummaryrefslogtreecommitdiff
path: root/post
diff options
context:
space:
mode:
authorHeinrich Schuchardt2020-08-03 22:12:13 +0200
committerTom Rini2020-10-23 13:33:06 -0400
commit86eeac7bcf486de3f4182c2a084eff181b8c6e63 (patch)
tree0d5a42d6be4f206b386bfdbda4fefb21bdd958d6 /post
parent001ab99325bf82cf3284771d1312585570569740 (diff)
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>
Diffstat (limited to 'post')
-rw-r--r--post/post.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/post/post.c b/post/post.c
index 6687e0b75ca..0f1fe8d9057 100644
--- a/post/post.c
+++ b/post/post.c
@@ -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;