arm: bootm-fdt.c: fix compiler warning
authorHeiko Schocher <hs@denx.de>
Wed, 17 Jan 2018 06:00:37 +0000 (07:00 +0100)
committerTom Rini <trini@konsulko.com>
Sun, 28 Jan 2018 14:39:05 +0000 (09:39 -0500)
compiling U-Boot with bosch_mpcxxxxd_sd_defconfig
drops warning:

arch/arm/lib/bootm-fdt.c: In function ‘arch_fixup_fdt’:
arch/arm/lib/bootm-fdt.c:37:6: warning: unused variable ‘ret’ [-Wunused-variable]
  int ret = 0;
      ^~~

Fix it.

Signed-off-by: Heiko Schocher <hs@denx.de>
arch/arm/lib/bootm-fdt.c

index fcc2a0e2146eb7312f3f15d993c68b3bb465ae7e..83409a7ece91dabf44973641e2ce76c89fb48b0e 100644 (file)
@@ -34,7 +34,7 @@ __weak int fdt_update_ethernet_dt(void *blob)
 
 int arch_fixup_fdt(void *blob)
 {
-       int ret = 0;
+       __maybe_unused int ret = 0;
 #if defined(CONFIG_ARMV7_NONSEC) || defined(CONFIG_OF_LIBFDT)
        bd_t *bd = gd->bd;
        int bank;