]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
post: remove redundant condition
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Mon, 3 Aug 2020 20:12:13 +0000 (22:12 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 23 Oct 2020 17:33:06 +0000 (13:33 -0400)
(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>
post/post.c

index 6687e0b75cac897decf160dc41309dd773dc45a6..0f1fe8d905769d5fc9de87daf1d76437f18dbe38 100644 (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;