diff options
author | Wolfgang Denk <wd@denx.de> | 2011-11-05 05:13:10 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-11-07 22:48:02 +0100 |
commit | 48fddf6aeba6432891c142ecd716105b12a373aa (patch) | |
tree | 671606165fa91bb4ee0e8b649bc43b6cc74388cc /board | |
parent | 419abb6af6e627196d68172dbb4c681fdac041e6 (diff) | |
download | u-boot-48fddf6aeba6432891c142ecd716105b12a373aa.zip u-boot-48fddf6aeba6432891c142ecd716105b12a373aa.tar.gz u-boot-48fddf6aeba6432891c142ecd716105b12a373aa.tar.bz2 |
board/hymod/input.c: Fix GCC 4.6 build warning
Fix:
input.c: In function 'hymod_get_ethaddr':
input.c:79:10: warning: variable 'ea' set but not used
[-Wunused-but-set-variable]
Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Murray Jensen <Murray.Jensen@csiro.au>
Diffstat (limited to 'board')
-rw-r--r-- | board/hymod/input.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/board/hymod/input.c b/board/hymod/input.c index 998132d..1a2b8d2 100644 --- a/board/hymod/input.c +++ b/board/hymod/input.c @@ -76,7 +76,6 @@ hymod_get_ethaddr (void) if (n == 17) { int i; char *p, *q; - uchar ea[6]; /* see if it looks like an ethernet address */ @@ -85,7 +84,7 @@ hymod_get_ethaddr (void) for (i = 0; i < 6; i++) { char term = (i == 5 ? '\0' : ':'); - ea[i] = simple_strtol (p, &q, 16); + (void)simple_strtol (p, &q, 16); if ((q - p) != 2 || *q++ != term) break; |