From patchwork Wed Nov 16 09:02:23 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kim Phillips X-Patchwork-Id: 125962 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 59EAFB6FA1 for ; Wed, 16 Nov 2011 20:02:35 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id DBB91284C9; Wed, 16 Nov 2011 10:02:33 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oPRr7JCjBjpC; Wed, 16 Nov 2011 10:02:33 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7543D284E1; Wed, 16 Nov 2011 10:02:31 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C060E284E1 for ; Wed, 16 Nov 2011 10:02:28 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eRo8WWK7G0hP for ; Wed, 16 Nov 2011 10:02:27 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from TX2EHSOBE003.bigfish.com (tx2ehsobe002.messaging.microsoft.com [65.55.88.12]) by theia.denx.de (Postfix) with ESMTPS id 78789284C9 for ; Wed, 16 Nov 2011 10:02:26 +0100 (CET) Received: from mail183-tx2-R.bigfish.com (10.9.14.248) by TX2EHSOBE003.bigfish.com (10.9.40.23) with Microsoft SMTP Server id 14.1.225.22; Wed, 16 Nov 2011 09:01:53 +0000 Received: from mail183-tx2 (localhost.localdomain [127.0.0.1]) by mail183-tx2-R.bigfish.com (Postfix) with ESMTP id 8E0CC1318064 for ; Wed, 16 Nov 2011 09:02:12 +0000 (UTC) X-SpamScore: 0 X-BigFish: VS0(zzzz1202hzz8275bhz2dh2a8h668h839h62h) X-Spam-TCS-SCL: 1:0 X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPVD:NLI; H:mail.freescale.net; RD:none; EFVD:NLI Received: from mail183-tx2 (localhost.localdomain [127.0.0.1]) by mail183-tx2 (MessageSwitch) id 1321434132494380_4907; Wed, 16 Nov 2011 09:02:12 +0000 (UTC) Received: from TX2EHSMHS012.bigfish.com (unknown [10.9.14.241]) by mail183-tx2.bigfish.com (Postfix) with ESMTP id 688F91AD004B for ; Wed, 16 Nov 2011 09:02:12 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by TX2EHSMHS012.bigfish.com (10.9.99.112) with Microsoft SMTP Server (TLS) id 14.1.225.22; Wed, 16 Nov 2011 09:01:52 +0000 Received: from az33smr01.freescale.net (10.64.34.199) by 039-SN1MMR1-003.039d.mgd.msft.net (10.84.1.16) with Microsoft SMTP Server id 14.1.339.2; Wed, 16 Nov 2011 03:02:23 -0600 Received: from ntel.kimphillips.com ([10.214.81.166]) by az33smr01.freescale.net (8.13.1/8.13.0) with ESMTP id pAG92MvA028981 for ; Wed, 16 Nov 2011 03:02:22 -0600 (CST) From: Kim Phillips To: Date: Wed, 16 Nov 2011 03:02:23 -0600 Message-ID: <1321434143-3410-1-git-send-email-kim.phillips@freescale.com> X-Mailer: git-send-email 1.7.7.3 MIME-Version: 1.0 X-OriginatorOrg: freescale.com Subject: [U-Boot] [PATCH] common: tsi148 - fix gcc 4.6 compiler warning X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Configuring for vme8349 board... cmd_tsi148.c: In function 'tsi148_init': cmd_tsi148.c:56:17: warning: variable 'lastError' set but not used [-Wunused-but-set-variable] Signed-off-by: Kim Phillips --- common/cmd_tsi148.c | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/common/cmd_tsi148.c b/common/cmd_tsi148.c index 6dc9dab..7f48ea2 100644 --- a/common/cmd_tsi148.c +++ b/common/cmd_tsi148.c @@ -53,7 +53,7 @@ static TSI148_DEV *dev; int tsi148_init(void) { - int j, result, lastError = 0; + int j, result; pci_dev_t busdevfn; unsigned int val; @@ -69,8 +69,7 @@ int tsi148_init(void) dev = malloc(sizeof(*dev)); if (NULL == dev) { puts("Tsi148: No memory!\n"); - result = -1; - goto break_20; + return -1; } memset(dev, 0, sizeof(*dev)); @@ -139,8 +138,6 @@ int tsi148_init(void) break_30: free(dev); dev = NULL; - break_20: - lastError = result; return result; }