Patchwork [U-Boot] da8xxevm: Fix warning: unused variable 'val'

login
register
mail settings
Submitter Wolfgang Denk
Date Sept. 5, 2011, 3:26 p.m.
Message ID <1315236387-27245-1-git-send-email-wd@denx.de>
Download mbox | patch
Permalink /patch/113382/
State Accepted
Commit 6f0d7ae26564a9beb429bb72b2ccf65e73816835
Headers show

Comments

Wolfgang Denk - Sept. 5, 2011, 3:26 p.m.
Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Cc: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
---
 board/davinci/da8xxevm/da850evm.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
Wolfgang Denk - Sept. 7, 2011, 8:03 p.m.
Dear Wolfgang Denk,

In message <1315236387-27245-1-git-send-email-wd@denx.de> you wrote:
> Signed-off-by: Wolfgang Denk <wd@denx.de>
> Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
> Cc: Sandeep Paulraj <s-paulraj@ti.com>
> Cc: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
> ---
>  board/davinci/da8xxevm/da850evm.c |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Patch

diff --git a/board/davinci/da8xxevm/da850evm.c b/board/davinci/da8xxevm/da850evm.c
index 2f950e7..46924d3 100644
--- a/board/davinci/da8xxevm/da850evm.c
+++ b/board/davinci/da8xxevm/da850evm.c
@@ -280,12 +280,14 @@  u32 get_board_rev(void)
 
 int board_init(void)
 {
+#ifdef CONFIG_USE_NOR
 	u32 val;
+#endif
+
 #ifndef CONFIG_USE_IRQ
 	irq_init();
 #endif
 
-
 #ifdef CONFIG_NAND_DAVINCI
 	/*
 	 * NAND CS setup - cycle counts based on da850evm NAND timings in the