All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 06/10] bcm63xx: zero initialize mac_addr_used.
@ 2009-05-31 18:29 Florian Fainelli
  2009-06-01 14:41 ` Ralf Baechle
  0 siblings, 1 reply; 2+ messages in thread
From: Florian Fainelli @ 2009-05-31 18:29 UTC (permalink / raw)
  To: linux-mips, Ralf Baechle, Maxime Bizon

This patch initializes mac_addr_used to zero, the checks
against it later would not work properly.

Signed-off-by: Maxime Bizon <mbizon@freebox.fr>
Signed-off-by: Florian Fainelli <florian@openwrt.org>
---
diff --git a/arch/mips/bcm63xx/boards/board_bcm963xx.c b/arch/mips/bcm63xx/boards/board_bcm963xx.c
index 78a40e7..298804a 100644
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
@@ -32,7 +32,7 @@
 #define PFX	"board_bcm963xx: "
 
 static struct bcm963xx_nvram nvram;
-static unsigned int mac_addr_used;
+static unsigned int mac_addr_used = 0;
 static struct board_info board;
 
 /*

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-06-01 14:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-31 18:29 [PATCH 06/10] bcm63xx: zero initialize mac_addr_used Florian Fainelli
2009-06-01 14:41 ` Ralf Baechle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.