linux-mips
[Top] [All Lists]

[PATCH 06/10] bcm63xx: zero initialize mac_addr_used.

To: linux-mips@linux-mips.org, Ralf Baechle <ralf@linux-mips.org>, Maxime Bizon <mbizon@freebox.fr>
Subject: [PATCH 06/10] bcm63xx: zero initialize mac_addr_used.
From: Florian Fainelli <florian@openwrt.org>
Date: Sun, 31 May 2009 20:29:07 +0200
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:from:date:subject :mime-version:x-uid:x-length:to:content-type :content-transfer-encoding:content-disposition:message-id; bh=+XOlKViooCPEGHPF7YcCqfC1yg7b8RkfHyj7p7ljN4U=; b=lotqFJTreYlYR3pkht6s3aFbDGuKDUm4j6jvvDZvUmJf437Mqd9vhYEG7I6h5GEZhG Um/BB1hhVWXEPRvze8ru2u8hn4lf3Y2RN374BYQ5SgLxFWMG40SaeeuA0GFuA8byWmmq HsqKaK71trVC4Q0OmwthGw6SRzcIKwXBOEiaY=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:date:subject:mime-version:x-uid:x-length:to :content-type:content-transfer-encoding:content-disposition :message-id; b=m8iiK03Wf46nS7mgIcfaCAw5WziLxViu2DS1NNnyei4mOQfWm7ghU7ff1PLXj5hSNm o+oaxvZxtJBxNI5RBeyiQeCE9yT2gZOL2+TRopMBJf9Kw4tWznb8K+duFP8WlPAHUFHb vhpGkgkDl9ST1rrfNqn3LFLES4aZzN/1ssm/s=
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
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;
 
 /*

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH 06/10] bcm63xx: zero initialize mac_addr_used., Florian Fainelli <=