Merge https://gitlab.denx.de/u-boot/custodians/u-boot-imx
[platform/kernel/u-boot.git] / post / post.c
index fb751d9..0f1fe8d 100644 (file)
@@ -5,8 +5,12 @@
  */
 
 #include <common.h>
+#include <bootstage.h>
 #include <env.h>
+#include <log.h>
+#include <malloc.h>
 #include <stdio_dev.h>
+#include <time.h>
 #include <watchdog.h>
 #include <div64.h>
 #include <post.h>
@@ -185,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;