From patchwork Thu May 27 22:13:01 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Prarit Bhargava X-Patchwork-Id: 53835 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id B273EB7D1B for ; Fri, 28 May 2010 08:13:18 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758863Ab0E0WNG (ORCPT ); Thu, 27 May 2010 18:13:06 -0400 Received: from mx1.redhat.com ([209.132.183.28]:62082 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757930Ab0E0WNC (ORCPT ); Thu, 27 May 2010 18:13:02 -0400 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o4RMD1Db029395 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 27 May 2010 18:13:02 -0400 Received: from prarit.bos.redhat.com (prarit.bos.redhat.com [10.16.16.23]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o4RMD1l1015538; Thu, 27 May 2010 18:13:01 -0400 Date: Thu, 27 May 2010 18:13:01 -0400 From: Prarit Bhargava To: netdev@vger.kernel.org, mchan@broadcom.com Cc: Prarit Bhargava Message-Id: <20100527220856.25418.86593.sendpatchset@prarit.bos.redhat.com> Subject: [PATCH]: bnx2: Fix uninitialized variable warning in bnx2_disable_forced_2g5() X-Scanned-By: MIMEDefang 2.67 on 10.5.11.21 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org 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 --- 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 --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;