Skip to content

Commit

Permalink
CRISv10 Ethernet declare mac fix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jesper Nilsson authored and Linus Torvalds committed Nov 15, 2007
1 parent ebd33e1 commit 3eed639
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/cris/eth_v10.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down

0 comments on commit 3eed639

Please sign in to comment.