mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-02 12:47:29 +00:00
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 <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>
This commit is contained in:
parent
ebd33e11c3
commit
3eed639364
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user