[U-Boot] [PATCH] post: fix indendation/brace confusion
Wolfgang Denk
wd at denx.de
Tue Jul 26 16:57:54 CEST 2011
Dear Mike Frysinger,
In message <1310667306-24948-1-git-send-email-vapier at gentoo.org> you wrote:
> From: James Kosin <jkosin at intcomgrp.com>
>
> The post.c code is missing braces around the pass case, and as a
> result, the diagnostic function will post both fail and pass for
> a failed test. The reason for this bug is probably the incorrect
> indentation used, so when reading the code it seems like there
> are proper braces.
>
> Indent the code to the correct depth and put proper braces around
> the "else" branch of the "if" statement.
>
> Signed-off-by: James Kosin <jkosin at intcomgrp.com>
> Signed-off-by: Mike Frysinger <vapier at gentoo.org>
> ---
> post/post.c | 24 ++++++++++++------------
> 1 files changed, 12 insertions(+), 12 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The speed of time is one second per second.
More information about the U-Boot
mailing list