Skip to contentSkip to conversation

net/eth.c: eth_mac_skip() is only needed when CONFIG_NET_MULTI is set

PATCH New Wolfgang Denk 1 participant 1 message Jun 20, 2010 Networking

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 net/eth.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
net/eth.c +2 -2
index 45e4a26..83d559c 100644
@@ -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
Signature · 1 line
1.7.0.1