From: Jesper Nilsson Date: Thu, 15 Nov 2007 01:01:29 +0000 (-0800) Subject: CRISv10 Ethernet declare mac fix X-Git-Tag: v2.6.24-rc3~21 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=3eed6393644c960e2343db7dabec08c775d3738f;p=linux-2.6-omap-h63xx.git CRISv10 Ethernet declare mac fix Declare mac using DECLARE_MAC_BUF for use when calling print_mac(). This fixes compile error where mac was undeclared. Also, remove unused variable i. Signed-off-by: Jesper Nilsson Cc: Mikael Starvik Cc: Jeff Garzik Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/net/cris/eth_v10.c b/drivers/net/cris/eth_v10.c index 5dc984a3e00..917b7b46f1a 100644 --- a/drivers/net/cris/eth_v10.c +++ b/drivers/net/cris/eth_v10.c @@ -630,7 +630,7 @@ e100_set_mac_address(struct net_device *dev, void *p) { struct net_local *np = netdev_priv(dev); struct sockaddr *addr = p; - int i; + DECLARE_MAC_BUF(mac); spin_lock(&np->lock); /* preemption protection */