]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
CRISv10 Ethernet declare mac fix
authorJesper Nilsson <jesper.nilsson@axis.com>
Thu, 15 Nov 2007 01:01:29 +0000 (17:01 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 15 Nov 2007 02:45:47 +0000 (18:45 -0800)
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 <jesper.nilsson@axis.com>
Cc: Mikael Starvik <mikael.starvik@axis.com>
Cc: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/net/cris/eth_v10.c

index 5dc984a3e0054625b0e9770d96b689394dbf7082..917b7b46f1a72d409d7babfb3fa0ca369bb83da2 100644 (file)
@@ -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 */