]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/cmd_boot.c
Prepare for 0.3.0 release
[karo-tx-uboot.git] / common / cmd_boot.c
index 09f3f78f4989c815e6331f5cd252b51575c785d8..2fc0729f3f2e7652dcf261842e808d5847e211c7 100644 (file)
@@ -1000,14 +1000,14 @@ static int k_recv (void)
                for (;;) {
                        switch (serial_getc ()) {
                        case START_CHAR:        /* start packet */
-                               break;
+                               goto START;
                        case ETX_CHAR:          /* ^C waiting for packet */
                                return (0);
                        default:
                                ;
                        }
                }
-                       
+START:
                /* get length of packet */
                sum = 0;
                new_char = serial_getc ();