]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net/eth.c: eth_mac_skip() is only needed when CONFIG_NET_MULTI is set
authorWolfgang Denk <wd@denx.de>
Sun, 20 Jun 2010 10:32:37 +0000 (12:32 +0200)
committerBen Warren <biggerbadderben@gmail.com>
Mon, 21 Jun 2010 05:13:18 +0000 (22:13 -0700)
Move it inside the #ifdef CONFIG_NET_MULTI to avoid

eth.c:64: warning: 'eth_mac_skip' defined but not used

messages from a number of old, non-CONFIG_NET_MULTI boards.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
net/eth.c

index 45e4a26d6fc36f4d080e3e6589cb11d7d40bd7d0..83d559c120406ab58213bf6ea46202b5a6870913 100644 (file)
--- a/net/eth.c
+++ b/net/eth.c
@@ -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