diff mbox

[1/2] drivers/net/au1000_eth.c: Remove misuse of DECLARE_MAC_BUF

Message ID 1260131563.11126.124.camel@Joe-Laptop.home
State Not Applicable, archived
Delegated to: David Miller
Headers show

Commit Message

Joe Perches Dec. 6, 2009, 8:32 p.m. UTC
And use a directly declared buffer.

It's used in a call to prom_get_ethernet_addr to
get a 6 byte address, not a formatted output string.

Signed-off-by: Joe Perches <joe@perches.com>



--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

David Miller Dec. 9, 2009, 4:42 a.m. UTC | #1
From: Joe Perches <joe@perches.com>
Date: Sun, 06 Dec 2009 12:32:43 -0800

> And use a directly declared buffer.
> 
> It's used in a call to prom_get_ethernet_addr to
> get a 6 byte address, not a formatted output string.
> 
> Signed-off-by: Joe Perches <joe@perches.com>

This DECLARE_MAC_BUF reference is already moved in the tree.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/net/au1000_eth.c b/drivers/net/au1000_eth.c
index 1acf2c1..af271fa 100644
--- a/drivers/net/au1000_eth.c
+++ b/drivers/net/au1000_eth.c
@@ -1006,7 +1006,7 @@  static int __devinit au1000_probe(struct platform_device *pdev)
 	db_dest_t *pDB, *pDBfree;
 	int irq, i, err = 0;
 	struct resource *base, *macen;
-	DECLARE_MAC_BUF(ethaddr);
+	char ethaddr[ETH_ALEN];
 
 	base = platform_get_resource(pdev, IORESOURCE_MEM, 0);
 	if (!base) {