diff mbox

[U-Boot] board/esd/dasa_sim/flash.c: Fix GCC 4.6 warning

Message ID 4ECE6526.7070905@esd.eu
State Accepted
Commit bbb1fe462cfbd248656553c082135738d8646239
Delegated to: Marek Vasut
Headers show

Commit Message

Matthias Fuchs Nov. 24, 2011, 3:39 p.m. UTC
Signed-off-by: Matthias Fuchs <matthias.fuchs@esd.eu>
---
 board/esd/dasa_sim/flash.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

Comments

Marek Vasut Nov. 24, 2011, 5:06 p.m. UTC | #1
> Signed-off-by: Matthias Fuchs <matthias.fuchs@esd.eu>
> ---
>  board/esd/dasa_sim/flash.c |    3 ---
>  1 files changed, 0 insertions(+), 3 deletions(-)
> 
> diff --git a/board/esd/dasa_sim/flash.c b/board/esd/dasa_sim/flash.c
> index d6a7737..e2f2aac 100644
> --- a/board/esd/dasa_sim/flash.c
> +++ b/board/esd/dasa_sim/flash.c
> @@ -44,7 +44,6 @@ unsigned long flash_init (void)
>  {
>  	unsigned long size_b0;
>  	int i;
> -	unsigned long base_b0;
> 
>  	/* Init: no FLASHes known */
>  	for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
> @@ -63,8 +62,6 @@ unsigned long flash_init (void)
>  	/* Setup offsets */
>  	flash_get_offsets (-size_b0, &flash_info[0]);
> 
> -	base_b0 = -size_b0;
> -
>  	/* Monitor protection ON by default */
>  	(void)flash_protect(FLAG_PROTECT_SET,
>  			    -monitor_flash_len,

Ok, I'll pick this one.
Marek Vasut Nov. 24, 2011, 5:30 p.m. UTC | #2
> > Signed-off-by: Matthias Fuchs <matthias.fuchs@esd.eu>
> > ---
> > 
> >  board/esd/dasa_sim/flash.c |    3 ---
> >  1 files changed, 0 insertions(+), 3 deletions(-)
> > 
> > diff --git a/board/esd/dasa_sim/flash.c b/board/esd/dasa_sim/flash.c
> > index d6a7737..e2f2aac 100644
> > --- a/board/esd/dasa_sim/flash.c
> > +++ b/board/esd/dasa_sim/flash.c
> > @@ -44,7 +44,6 @@ unsigned long flash_init (void)
> > 
> >  {
> >  
> >  	unsigned long size_b0;
> >  	int i;
> > 
> > -	unsigned long base_b0;
> > 
> >  	/* Init: no FLASHes known */
> >  	for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
> > 
> > @@ -63,8 +62,6 @@ unsigned long flash_init (void)
> > 
> >  	/* Setup offsets */
> >  	flash_get_offsets (-size_b0, &flash_info[0]);
> > 
> > -	base_b0 = -size_b0;
> > -
> > 
> >  	/* Monitor protection ON by default */
> >  	(void)flash_protect(FLAG_PROTECT_SET,
> >  	
> >  			    -monitor_flash_len,
> 
> Ok, I'll pick this one.

Picked to:
u-boot-staging.git / marek.vasut@gmail.com
diff mbox

Patch

diff --git a/board/esd/dasa_sim/flash.c b/board/esd/dasa_sim/flash.c
index d6a7737..e2f2aac 100644
--- a/board/esd/dasa_sim/flash.c
+++ b/board/esd/dasa_sim/flash.c
@@ -44,7 +44,6 @@  unsigned long flash_init (void)
 {
 	unsigned long size_b0;
 	int i;
-	unsigned long base_b0;
 
 	/* Init: no FLASHes known */
 	for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
@@ -63,8 +62,6 @@  unsigned long flash_init (void)
 	/* Setup offsets */
 	flash_get_offsets (-size_b0, &flash_info[0]);
 
-	base_b0 = -size_b0;
-
 	/* Monitor protection ON by default */
 	(void)flash_protect(FLAG_PROTECT_SET,
 			    -monitor_flash_len,