[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20100527220856.25418.86593.sendpatchset@prarit.bos.redhat.com>
Date: Thu, 27 May 2010 18:13:01 -0400
From: Prarit Bhargava <prarit@...hat.com>
To: netdev@...r.kernel.org, mchan@...adcom.com
Cc: Prarit Bhargava <prarit@...hat.com>
Subject: [PATCH]: bnx2: Fix uninitialized variable warning in bnx2_disable_forced_2g5()
Fix warning:
drivers/net/bnx2.c: In function 'bnx2_disable_forced_2g5':
drivers/net/bnx2.c:1489: warning: 'bmcr' may be used uninitialized in this function
Signed-off-by: Prarit Bhargava <prarit@...hat.com>
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c
index 667f419..7e2f8ac 100644
--- a/drivers/net/bnx2.c
+++ b/drivers/net/bnx2.c
@@ -1486,7 +1486,7 @@ bnx2_enable_forced_2g5(struct bnx2 *bp)
static void
bnx2_disable_forced_2g5(struct bnx2 *bp)
{
- u32 bmcr;
+ u32 uninitialized_var(bmcr);
if (!(bp->phy_flags & BNX2_PHY_FLAG_2_5G_CAPABLE))
return;
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists