]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/karo/tx53/tx53.c
karo: tx53: check ctrlc before returning error code for unsupported baseboard
[karo-tx-uboot.git] / board / karo / tx53 / tx53.c
index ffc61019854e947fc6e290570a13a0683d74e504..9c45791229a5ff8865d503072342904a979662e8 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)