All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bin Meng <bmeng.cn@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 3/3] microblaze: bootm: Fix compiler warning
Date: Mon, 12 Feb 2018 17:54:37 +0800	[thread overview]
Message-ID: <1518429277-8370-3-git-send-email-bmeng.cn@gmail.com> (raw)
In-Reply-To: <1518429277-8370-1-git-send-email-bmeng.cn@gmail.com>

Fix build warning in arch/microblaze/lib/bootm.c with gcc 7.3.0:

  warning: this 'if' clause does not guard... [-Wmisleading-indentation]

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
---

 arch/microblaze/lib/bootm.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/microblaze/lib/bootm.c b/arch/microblaze/lib/bootm.c
index 0a286e8..93525cc 100644
--- a/arch/microblaze/lib/bootm.c
+++ b/arch/microblaze/lib/bootm.c
@@ -62,11 +62,12 @@ int do_bootm_linux(int flag, int argc, char * const argv[],
 		of_flat_tree = (char *)simple_strtoul(argv[1], NULL, 16);
 
 	/* fixup the initrd now that we know where it should be */
-	if (images->rd_start && images->rd_end && of_flat_tree)
+	if (images->rd_start && images->rd_end && of_flat_tree) {
 		ret = fdt_initrd(of_flat_tree, images->rd_start,
 				 images->rd_end);
 		if (ret)
 			return 1;
+	}
 
 #ifdef DEBUG
 	printf("## Transferring control to Linux (at address 0x%08lx) ",
-- 
2.7.4

  parent reply	other threads:[~2018-02-12  9:54 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-12  9:54 [U-Boot] [PATCH 1/3] video: ivybridge_igd: Fix compiler warning Bin Meng
2018-02-12  9:54 ` [U-Boot] [PATCH 2/3] arm: omap2: " Bin Meng
2018-02-12 14:46   ` Tom Rini
2018-02-14  3:56   ` [U-Boot] [U-Boot,2/3] " Tom Rini
2018-02-12  9:54 ` Bin Meng [this message]
2018-02-12 14:46   ` [U-Boot] [PATCH 3/3] microblaze: bootm: " Tom Rini
2018-02-12 15:22     ` Michal Simek
2018-02-14  3:57   ` [U-Boot] [U-Boot,3/3] " Tom Rini
2018-02-12 14:46 ` [U-Boot] [PATCH 1/3] video: ivybridge_igd: " Tom Rini
2018-02-13  1:36   ` Bin Meng
2018-02-14  3:56 ` [U-Boot] [U-Boot, " Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1518429277-8370-3-git-send-email-bmeng.cn@gmail.com \
    --to=bmeng.cn@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.