From: Wolfgang Denk Date: Wed, 20 Oct 2010 09:02:01 +0200 Subject: [U-Boot] [PATCH] common/fdt_support.c: Fix compile warnings In-Reply-To: <1286999857-13790-4-git-send-email-john.rigby@linaro.org> References: <1286999857-13790-4-git-send-email-john.rigby@linaro.org> Message-ID: <1287558121-8666-1-git-send-email-wd@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- common/fdt_support.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/common/fdt_support.c b/common/fdt_support.c index 90e9097..5829afd 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) { -- 1.7.2.3