]> git.sur5r.net Git - u-boot/commitdiff
board/hymod/input.c: Fix GCC 4.6 build warning
authorWolfgang Denk <wd@denx.de>
Sat, 5 Nov 2011 05:13:10 +0000 (05:13 +0000)
committerWolfgang Denk <wd@denx.de>
Mon, 7 Nov 2011 21:48:02 +0000 (22:48 +0100)
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>
board/hymod/input.c

index 998132d659491031e8a1442113d4fb0cf05080bd..1a2b8d23a7be380c6ce7c9bd3f5dc83ee678487c 100644 (file)
@@ -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;