Patchwork [U-Boot] image: Fix inverted logic in architecture check.

login
register
mail settings
Submitter Thierry Reding
Date Oct. 27, 2011, 6:58 p.m.
Message ID <1319741905-31209-1-git-send-email-thierry.reding@avionic-design.de>
Download mbox | patch
Permalink /patch/122212/
State Accepted
Commit 7566832a88d4cdff86140d8515b40ca942c7d444
Headers show

Comments

Thierry Reding - Oct. 27, 2011, 6:58 p.m.
Commit 476af29 broke this check when the ifdef lists we consolidated.

Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
---
 include/image.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Mike Frysinger - Oct. 27, 2011, 9:02 p.m.
On Thu, Oct 27, 2011 at 20:58, Thierry Reding wrote:
> Commit 476af29 broke this check when the ifdef lists we consolidated.

that does seem to be the case ... sorry about that.  i don't have any
dt systems to test :x.

Acked-by: Mike Frysinger <vapier@gentoo.org>
-mike
Wolfgang Denk - Oct. 27, 2011, 9:42 p.m.
Dear Thierry Reding,

In message <1319741905-31209-1-git-send-email-thierry.reding@avionic-design.de> you wrote:
> Commit 476af29 broke this check when the ifdef lists we consolidated.
> 
> Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
> ---
>  include/image.h |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Patch

diff --git a/include/image.h b/include/image.h
index 1ba866e..c56a18d 100644
--- a/include/image.h
+++ b/include/image.h
@@ -615,7 +615,7 @@  void fit_conf_print(const void *fit, int noffset, const char *p);
 #ifndef USE_HOSTCC
 static inline int fit_image_check_target_arch(const void *fdt, int node)
 {
-	return !fit_image_check_arch(fdt, node, IH_ARCH_DEFAULT);
+	return fit_image_check_arch(fdt, node, IH_ARCH_DEFAULT);
 }
 #endif /* USE_HOSTCC */