All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] common/xyzModem.c: move empty statements to newline
@ 2014-06-10 23:04 Jeroen Hofstee
  2014-06-11 22:20 ` [U-Boot] " Tom Rini
  0 siblings, 1 reply; 2+ messages in thread
From: Jeroen Hofstee @ 2014-06-10 23:04 UTC (permalink / raw)
  To: u-boot

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 at denx.de
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>

---
This ignores checkpatch warnings since somone forgot to burn
the GNU code style manual.

jeroen at yellow:~/software/u-boot$ ./scripts/checkpatch.pl 0001-common-xyzModem.c-move-empty-statements-to-newline.patch
WARNING: please, no spaces at the start of a line
+      while ((c = (*getc) ()) > -1)$

ERROR: code indent should use tabs where possible
+        ;$

WARNING: please, no spaces at the start of a line
+        ;$
---
 common/xyzModem.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/common/xyzModem.c b/common/xyzModem.c
index 39f7d17..56f4bca 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
-- 
1.8.3.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] common/xyzModem.c: move empty statements to newline
  2014-06-10 23:04 [U-Boot] [PATCH] common/xyzModem.c: move empty statements to newline Jeroen Hofstee
@ 2014-06-11 22:20 ` Tom Rini
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2014-06-11 22:20 UTC (permalink / raw)
  To: u-boot

On Wed, Jun 11, 2014 at 01:04:42AM +0200, Jeroen Hofstee wrote:

> 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 at denx.de
> Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140611/8ff080ad/attachment.pgp>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-06-11 22:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-10 23:04 [U-Boot] [PATCH] common/xyzModem.c: move empty statements to newline Jeroen Hofstee
2014-06-11 22:20 ` [U-Boot] " Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.