]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
common/xyzModem.c: move empty statements to newline
authorJeroen Hofstee <jeroen@myspectrum.nl>
Tue, 10 Jun 2014 23:04:42 +0000 (01:04 +0200)
committerTom Rini <trini@ti.com>
Wed, 11 Jun 2014 20:27:06 +0000 (16:27 -0400)
To prevent a warning for clang the loop without a body
is made more clear by moving it to a line of its own.
This prevents a clang warning.

cc: sbabic@denx.de
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
common/xyzModem.c

index 39f7d17a7c7dd9baa34125f488296e2ccc51c902..56f4bcaf99453d04bac277b39a63688ed6836263 100644 (file)
@@ -759,7 +759,8 @@ xyzModem_stream_terminate (bool abort, int (*getc) (void))
        * If we don't eat it now, RedBoot will think the user typed it.
        */
       ZM_DEBUG (zm_dprintf ("Trailing gunk:\n"));
-      while ((c = (*getc) ()) > -1);
+      while ((c = (*getc) ()) > -1)
+        ;
       ZM_DEBUG (zm_dprintf ("\n"));
       /*
        * Make a small delay to give terminal programs like minicom