From: Wolfgang Denk Date: Wed, 20 Oct 2010 06:59:16 +0000 (+0200) Subject: common/fdt_support.c: Fix compile warnings X-Git-Tag: v2010.12-rc1~69 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=70994c79caec0b0304aa87d9695c79f1862ea340;p=oweals%2Fu-boot.git common/fdt_support.c: Fix compile warnings Commit a6bd9e8 "FDT: Add fixup support for multiple banks of memory" removed code but forgot to remove the variables used by it, resulting in warnings: fdt_support.c: In function 'fdt_fixup_memory_banks': fdt_support.c:399: warning: unused variable 'sizecell' fdt_support.c:399: warning: unused variable 'addrcell' Remove the declarations, too. Signed-off-by: Wolfgang Denk --- diff --git a/common/fdt_support.c b/common/fdt_support.c index 90e909795b..5829afd2ad 100644 --- a/common/fdt_support.c +++ b/common/fdt_support.c @@ -396,7 +396,6 @@ int fdt_fixup_memory_banks(void *blob, u64 start[], u64 size[], int banks) int addr_cell_len, size_cell_len, len; u8 tmp[banks * 8]; int bank; - const u32 *addrcell, *sizecell; err = fdt_check_header(blob); if (err < 0) {