public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] board/ti/omap2420h4/omap2420h4.c: Fix GC 4.6 build warning
@ 2011-12-12  7:16 Wolfgang Denk
  2011-12-12 13:26 ` Wolfgang Denk
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Denk @ 2011-12-12  7:16 UTC (permalink / raw)
  To: u-boot

Fix:
omap2420h4.c: In function 'dram_init':
omap2420h4.c:196:25: warning: variable 'cpu' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Richard Woodruff <r-woodruff2@ti.com>
Cc: Tom Rini <trini@ti.com>
---
 board/ti/omap2420h4/omap2420h4.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/board/ti/omap2420h4/omap2420h4.c b/board/ti/omap2420h4/omap2420h4.c
index 1c98e1b..a3983e3 100644
--- a/board/ti/omap2420h4/omap2420h4.c
+++ b/board/ti/omap2420h4/omap2420h4.c
@@ -193,7 +193,7 @@ void ether_init (void)
 int dram_init (void)
 {
 	unsigned int size0=0,size1=0;
-	u32 mtype, btype, rev, cpu;
+	u32 mtype, btype, rev;
 	u8 chg_on = 0x5; /* enable charge of back up battery */
 	u8 vmode_on = 0x8C;
 	#define NOT_EARLY 0
@@ -203,7 +203,6 @@ int dram_init (void)
 	btype = get_board_type();
 	mtype = get_mem_type();
 	rev = get_cpu_rev();
-	cpu = get_cpu_type();
 
 	display_board_info(btype);
 	if (btype == BOARD_H4_MENELAUS){
-- 
1.7.6.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH] board/ti/omap2420h4/omap2420h4.c: Fix GC 4.6 build warning
  2011-12-12  7:16 [U-Boot] [PATCH] board/ti/omap2420h4/omap2420h4.c: Fix GC 4.6 build warning Wolfgang Denk
@ 2011-12-12 13:26 ` Wolfgang Denk
  2011-12-13 15:05   ` Tom Rini
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Denk @ 2011-12-12 13:26 UTC (permalink / raw)
  To: u-boot

Dear Wolfgang Denk,

In message <1323674180-30359-1-git-send-email-wd@denx.de> you wrote:
> Fix:
> omap2420h4.c: In function 'dram_init':
> omap2420h4.c:196:25: warning: variable 'cpu' set but not used
> [-Wunused-but-set-variable]
> 
> Signed-off-by: Wolfgang Denk <wd@denx.de>
> Cc: Richard Woodruff <r-woodruff2@ti.com>
> Cc: Tom Rini <trini@ti.com>
> ---
>  board/ti/omap2420h4/omap2420h4.c |    3 +--
>  1 files changed, 1 insertions(+), 2 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Absolute: Independent, irresponsible. An absolute monarchy is one  in
which  the  sovereign  does  as  he pleases so long as he pleases the
assassins. Not many absolute monarchies are left, most of them having
been replaced by limited monarchies, where the soverign's  power  for
evil (and for good) is greatly curtailed, and by republics, which are
governed by chance.                                  - Ambrose Bierce

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH] board/ti/omap2420h4/omap2420h4.c: Fix GC 4.6 build warning
  2011-12-12 13:26 ` Wolfgang Denk
@ 2011-12-13 15:05   ` Tom Rini
  0 siblings, 0 replies; 3+ messages in thread
From: Tom Rini @ 2011-12-13 15:05 UTC (permalink / raw)
  To: u-boot

On 12/12/2011 06:26 AM, Wolfgang Denk wrote:
> Dear Wolfgang Denk,
> 
> In message <1323674180-30359-1-git-send-email-wd@denx.de> you wrote:
>> Fix:
>> omap2420h4.c: In function 'dram_init':
>> omap2420h4.c:196:25: warning: variable 'cpu' set but not used
>> [-Wunused-but-set-variable]
>>
>> Signed-off-by: Wolfgang Denk <wd@denx.de>
>> Cc: Richard Woodruff <r-woodruff2@ti.com>
>> Cc: Tom Rini <trini@ti.com>
>> ---
>>  board/ti/omap2420h4/omap2420h4.c |    3 +--
>>  1 files changed, 1 insertions(+), 2 deletions(-)
> 
> Applied, thanks.

Too late then, but...

Acked-by: Tom Rini <trini@ti.com>

-- 
Tom

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-12-13 15:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-12  7:16 [U-Boot] [PATCH] board/ti/omap2420h4/omap2420h4.c: Fix GC 4.6 build warning Wolfgang Denk
2011-12-12 13:26 ` Wolfgang Denk
2011-12-13 15:05   ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox