]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
karo: tx53: check ctrlc before returning error code for unsupported baseboard
authorLothar Waßmann <LW@KARO-electronics.de>
Thu, 18 Feb 2016 17:17:01 +0000 (18:17 +0100)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 18 Feb 2016 17:17:01 +0000 (18:17 +0100)
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 board_late_init(void)
 {
-       int ret = 0;
        const char *baseboard;
 
        env_cleanup();
        const char *baseboard;
 
        env_cleanup();
@@ -1372,7 +1371,8 @@ int board_late_init(void)
        } else {
                printf("WARNING: Unsupported baseboard: '%s'\n",
                        baseboard);
        } else {
                printf("WARNING: Unsupported baseboard: '%s'\n",
                        baseboard);
-               ret = -EINVAL;
+               if (!had_ctrlc())
+                       return -EINVAL;
        }
 
 exit:
        }
 
 exit:
@@ -1383,7 +1383,7 @@ exit:
 
        get_hab_status();
 
 
        get_hab_status();
 
-       return ret;
+       return 0;
 }
 
 int checkboard(void)
 }
 
 int checkboard(void)