[PATCH 1/1] post: remove redundant condition
Heinrich Schuchardt
xypron.glpk at gmx.de
Mon Aug 3 22:12:13 CEST 2020
(A && A == 0x20) is only true for (A == 0x20).
Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
---
post/post.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
--
2.27.0
More information about the U-Boot
mailing list