[U-Boot] [PATCH] Fix unused variable compile warning

Joe Hershberger joe.hershberger at ni.com
Mon May 21 16:56:45 CEST 2012


In gcc 4.6 this warns.

Signed-off-by: Joe Hershberger <joe.hershberger at ni.com>
Cc: Wolfgang Denk <wd at denx.de>
---
 common/cmd_nvedit.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/common/cmd_nvedit.c b/common/cmd_nvedit.c
index 5999cb8..2712002 100644
--- a/common/cmd_nvedit.c
+++ b/common/cmd_nvedit.c
@@ -204,7 +204,6 @@ static int do_env_grep(cmd_tbl_t *cmdtp, int flag,
  */
 int _do_env_set(int flag, int argc, char * const argv[])
 {
-	bd_t  *bd = gd->bd;
 	int   i, len;
 	int   console = -1;
 	char  *name, *value, *s;
-- 
1.6.0.2



More information about the U-Boot mailing list