Skip to content
Snippets Groups Projects
Commit 9c00b2f0 authored by Wolfgang Denk's avatar Wolfgang Denk
Browse files

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: default avatarWolfgang Denk <wd@denx.de>
Cc: Ben Warren <biggerbadderben@gmail.com>
parent 9312bba0
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment