summaryrefslogtreecommitdiff
path: root/post
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2020-08-03 22:12:13 +0200
committerTom Rini <trini@konsulko.com>2020-10-23 13:33:06 -0400
commit86eeac7bcf486de3f4182c2a084eff181b8c6e63 (patch)
tree0d5a42d6be4f206b386bfdbda4fefb21bdd958d6 /post
parent001ab99325bf82cf3284771d1312585570569740 (diff)
downloadu-boot-86eeac7bcf486de3f4182c2a084eff181b8c6e63.tar.gz
u-boot-86eeac7bcf486de3f4182c2a084eff181b8c6e63.tar.bz2
u-boot-86eeac7bcf486de3f4182c2a084eff181b8c6e63.zip
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 6687e0b75c..0f1fe8d905 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;