From e153b13c8e300236e6d505bea629cc81fd0988cb Mon Sep 17 00:00:00 2001 From: Jeroen Hofstee Date: Wed, 11 Jun 2014 01:04:42 +0200 Subject: [PATCH] common/xyzModem.c: move empty statements to newline 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 --- common/xyzModem.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/xyzModem.c b/common/xyzModem.c index 39f7d17a7c..56f4bcaf99 100644 --- a/common/xyzModem.c +++ b/common/xyzModem.c @@ -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 -- 2.30.2