diff options
author | Wolfgang Denk <wd@denx.de> | 2010-06-20 12:30:22 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-06-20 12:30:22 +0200 |
commit | 9c00b2f0a3fe0f779761607024f99b7690c9776c (patch) | |
tree | 00ff9c621e2b27fcdc215f47a6a64f364a039898 /net/eth.c | |
parent | 9312bba01a41191f20821b66b84b3ff1d2902e8a (diff) | |
download | u-boot-imx-9c00b2f0a3fe0f779761607024f99b7690c9776c.zip u-boot-imx-9c00b2f0a3fe0f779761607024f99b7690c9776c.tar.gz u-boot-imx-9c00b2f0a3fe0f779761607024f99b7690c9776c.tar.bz2 |
net/eth.c: eth_mac_skip() is only needed when CONFIG_NET_MULTI is set
Move it inside the #ifdef CONFIG_NET_MULTI to avoid
eth.c:64: warning: 'eth_mac_skip' defined but not used
messages from anumber of old, non-CONFIG_NET_MULTI boards.
Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Ben Warren <biggerbadderben@gmail.com>
Diffstat (limited to 'net/eth.c')
-rw-r--r-- | net/eth.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -60,6 +60,8 @@ int eth_getenv_enetaddr_by_index(int index, uchar *enetaddr) return eth_getenv_enetaddr(enetvar, enetaddr); } +#ifdef CONFIG_NET_MULTI + static int eth_mac_skip(int index) { char enetvar[15]; @@ -68,8 +70,6 @@ static int eth_mac_skip(int index) return ((skip_state = getenv(enetvar)) != NULL); } -#ifdef CONFIG_NET_MULTI - /* * CPU and board-specific Ethernet initializations. Aliased function * signals caller to move on |