From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kumar Gala Date: Wed, 9 Nov 2011 10:29:35 -0600 Subject: [U-Boot] [PATCH 04/16] board/freescale/common/cds_pci_ft.c: Fix GCC 4.6 build warning In-Reply-To: <1320856180-8372-4-git-send-email-galak@kernel.crashing.org> References: <1320856180-8372-1-git-send-email-galak@kernel.crashing.org> <1320856180-8372-2-git-send-email-galak@kernel.crashing.org> <1320856180-8372-3-git-send-email-galak@kernel.crashing.org> <1320856180-8372-4-git-send-email-galak@kernel.crashing.org> Message-ID: <1320856180-8372-5-git-send-email-galak@kernel.crashing.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Fix: cds_pci_ft.c: In function 'cds_pci_fixup': cds_pci_ft.c:31:12: warning: variable 'tmp' set but not used [-Wunused-but-set-variable] Signed-off-by: Kumar Gala --- board/freescale/common/cds_pci_ft.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/board/freescale/common/cds_pci_ft.c b/board/freescale/common/cds_pci_ft.c index 6f221af..8a09f99 100644 --- a/board/freescale/common/cds_pci_ft.c +++ b/board/freescale/common/cds_pci_ft.c @@ -28,13 +28,12 @@ #if defined(CONFIG_OF_BOARD_SETUP) static void cds_pci_fixup(void *blob) { - int node, tmp[2]; + int node; const char *path; int len, slot, i; u32 *map = NULL; node = fdt_path_offset(blob, "/aliases"); - tmp[0] = 0; if (node >= 0) { path = fdt_getprop(blob, node, "pci0", NULL); if (path) { -- 1.7.3.4