public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH v2 1/2] image: Fix typo in boot_get_kbd()
@ 2021-11-08 18:03 Andy Shevchenko
  2021-11-08 18:03 ` [PATCH v2 2/2] image: Explicitly declare do_bdinfo() Andy Shevchenko
  2021-11-09  0:09 ` [PATCH v2 1/2] image: Fix typo in boot_get_kbd() Simon Glass
  0 siblings, 2 replies; 5+ messages in thread
From: Andy Shevchenko @ 2021-11-08 18:03 UTC (permalink / raw)
  To: Simon Glass, Ovidiu Panait, u-boot; +Cc: Andy Shevchenko

After the commit 4ed37abc49c2 ("image: Remove ifdefs around
image_setup_linux() el at"):

common/image-board.c: In function ‘boot_get_kbd’:
common/image-board.c:902:17: error: expected ‘)’ before ‘do_bdinfo’
  902 |                 do_bdinfo(NULL, 0, 0, NULL);
      |                 ^~~~~~~~~
common/image-board.c:901:12: note: to match this ‘(’
  901 |         if (IS_ENABLED(CONFIG_CMD_BDI)
      |            ^
common/image-board.c:906:1: error: expected expression before ‘}’ token
  906 | }
      | ^
common/image-board.c:906:1: warning: control reaches end of non-void function [-Wreturn-type]
  906 | }
      | ^

Fix obvious typo.

Fixes: 4ed37abc49c2 ("image: Remove ifdefs around image_setup_linux() el at")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
---
v2: added tag (Simon)
 common/image-board.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/image-board.c b/common/image-board.c
index e7660352e96a..ddf30c67302e 100644
--- a/common/image-board.c
+++ b/common/image-board.c
@@ -898,7 +898,7 @@ int boot_get_kbd(struct lmb *lmb, struct bd_info **kbd)
 	debug("## kernel board info at 0x%08lx\n", (ulong)*kbd);
 
 #if defined(DEBUG)
-	if (IS_ENABLED(CONFIG_CMD_BDI)
+	if (IS_ENABLED(CONFIG_CMD_BDI))
 		do_bdinfo(NULL, 0, 0, NULL);
 #endif
 
-- 
2.33.0


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

end of thread, other threads:[~2021-11-16 19:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-08 18:03 [PATCH v2 1/2] image: Fix typo in boot_get_kbd() Andy Shevchenko
2021-11-08 18:03 ` [PATCH v2 2/2] image: Explicitly declare do_bdinfo() Andy Shevchenko
2021-11-09  0:09   ` Simon Glass
2021-11-16 19:25   ` Tom Rini
2021-11-09  0:09 ` [PATCH v2 1/2] image: Fix typo in boot_get_kbd() Simon Glass

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox