[U-Boot] [PATCH] Fix cmd_nvedit.c: warning: unused variable 'bd'

Wolfgang Denk wd at denx.de
Mon May 21 09:13:47 CEST 2012


Commit 50a47d0 "net: punt bd->bi_ip_addr" introduced a build warning.
Fix it.

Signed-off-by: Wolfgang Denk <wd at denx.de>
Cc: Mike Frysinger <vapier at gentoo.org>
---
 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.7.7.6



More information about the U-Boot mailing list