karo: tx53: check ctrlc before returning error code for unsupported baseboard
[karo-tx-uboot.git] / board / karo / tx53 / tx53.c
index ffc6101..9c45791 100644 (file)
@@ -1332,7 +1332,6 @@ static void tx53_init_mac(void)
 
 int board_late_init(void)
 {
-       int ret = 0;
        const char *baseboard;
 
        env_cleanup();
@@ -1372,7 +1371,8 @@ int board_late_init(void)
        } else {
                printf("WARNING: Unsupported baseboard: '%s'\n",
                        baseboard);
-               ret = -EINVAL;
+               if (!had_ctrlc())
+                       return -EINVAL;
        }
 
 exit:
@@ -1383,7 +1383,7 @@ exit:
 
        get_hab_status();
 
-       return ret;
+       return 0;
 }
 
 int checkboard(void)