Skip to contentSkip to conversation

CRISv10 Ethernet declare mac fix

PATCH New Jesper Nilsson 1 participant 1 message Nov 14, 2007 Network drivers

lore
Share & tools
lore
#0 lore raw

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

---
 eth_v10.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/cris/eth_v10.c +1 -1
index 5dc984a..917b7b4 100644
@@ -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 */
 

/^JN - Jesper Nilsson
--
Jesper Nilsson -- [email protected]