Patchwork [U-Boot,2/2] avr32:board.c: fix compile warning

login
register
mail settings
Submitter Andreas Bießmann
Date May 25, 2012, 10:29 a.m.
Message ID <1337941773-16272-2-git-send-email-andreas.devel@googlemail.com>
Download mbox | patch
Permalink /patch/161274/
State Accepted
Commit d3a105a26f89ba9f43800f9452907e01b8211da5
Delegated to: Andreas Bießmann
Headers show

Comments

Andreas Bießmann - May 25, 2012, 10:29 a.m.
This patch fixes following warning:

---8<---
board.c: In function 'board_init_r':
board.c:257: warning: unused variable 's'
--->8---

Patch de30122bb58fee7b0f94bcfabab595b6ad757336 missed to remove this variable
too.

Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
---
 arch/avr32/lib/board.c |    1 -
 1 file changed, 1 deletion(-)
Andreas Bießmann - June 4, 2012, 10:46 a.m.
On 25.05.2012 12:29, Andreas Bießmann wrote:
> This patch fixes following warning:
> 
> ---8<---
> board.c: In function 'board_init_r':
> board.c:257: warning: unused variable 's'
> --->8---
> 
> Patch de30122bb58fee7b0f94bcfabab595b6ad757336 missed to remove this variable
> too.
> 
> Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>

applied

> ---
>  arch/avr32/lib/board.c |    1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/arch/avr32/lib/board.c b/arch/avr32/lib/board.c
> index b390a6c..d7a64b4 100644
> --- a/arch/avr32/lib/board.c
> +++ b/arch/avr32/lib/board.c
> @@ -254,7 +254,6 @@ void board_init_r(gd_t *new_gd, ulong dest_addr)
>  #ifndef CONFIG_ENV_IS_NOWHERE
>  	extern char * env_name_spec;
>  #endif
> -	char *s;
>  	bd_t *bd;
>  
>  	gd = new_gd;

Patch

diff --git a/arch/avr32/lib/board.c b/arch/avr32/lib/board.c
index b390a6c..d7a64b4 100644
--- a/arch/avr32/lib/board.c
+++ b/arch/avr32/lib/board.c
@@ -254,7 +254,6 @@  void board_init_r(gd_t *new_gd, ulong dest_addr)
 #ifndef CONFIG_ENV_IS_NOWHERE
 	extern char * env_name_spec;
 #endif
-	char *s;
 	bd_t *bd;
 
 	gd = new_gd;