From: Wolfgang Denk Date: Tue, 26 Jul 2011 16:57:54 +0200 Subject: [U-Boot] [PATCH] post: fix indendation/brace confusion In-Reply-To: <1310667306-24948-1-git-send-email-vapier@gentoo.org> References: <1310667306-24948-1-git-send-email-vapier@gentoo.org> Message-ID: <20110726145754.1C043138EED4@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Mike Frysinger, In message <1310667306-24948-1-git-send-email-vapier@gentoo.org> you wrote: > From: James Kosin > > 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 > Signed-off-by: Mike Frysinger > --- > 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.