mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 06:00:43 +00:00
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>
This commit is contained in:
parent
419abb6af6
commit
48fddf6aeb
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue