From patchwork Wed Nov 9 19:29:03 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfgang Denk X-Patchwork-Id: 124667 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 861EFB6F69 for ; Thu, 10 Nov 2011 06:29:41 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 30AC628B2E; Wed, 9 Nov 2011 20:29:36 +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 aPeaJsKX738L; Wed, 9 Nov 2011 20:29:35 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 98A5E28B8A; Wed, 9 Nov 2011 20:29:20 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 52DEE28AE2 for ; Wed, 9 Nov 2011 20:29:13 +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 kzrf2a03xmoN for ; Wed, 9 Nov 2011 20:29:13 +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 mail-out.m-online.net (mail-out.m-online.net [212.18.0.10]) by theia.denx.de (Postfix) with ESMTP id 01A64288AA for ; Wed, 9 Nov 2011 20:29:11 +0100 (CET) Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id BC4EA1853B81 for ; Wed, 9 Nov 2011 20:30:55 +0100 (CET) X-Auth-Info: uta8r0IcokkO8Z2Dw9RTuhS+jzDax4+Xhy2GGX5kEeM= Received: from diddl.denx.de (host-80-81-18-216.customer.m-online.net [80.81.18.216]) by smtp-auth.mnet-online.de (Postfix) with ESMTPA id 56F9B1C000E4 for ; Wed, 9 Nov 2011 20:29:11 +0100 (CET) Received: from gemini.denx.de (gemini.denx.de [10.0.0.2]) by diddl.denx.de (Postfix) with ESMTP id E5156C8CD268 for ; Wed, 9 Nov 2011 20:29:10 +0100 (CET) Received: by gemini.denx.de (Postfix, from userid 500) id 1756F1404448; Wed, 9 Nov 2011 20:29:09 +0100 (CET) From: Wolfgang Denk To: u-boot@lists.denx.de Date: Wed, 9 Nov 2011 20:29:03 +0100 Message-Id: <1320866946-28235-10-git-send-email-wd@denx.de> X-Mailer: git-send-email 1.7.6.4 In-Reply-To: <1320866946-28235-1-git-send-email-wd@denx.de> References: <1320866946-28235-1-git-send-email-wd@denx.de> Subject: [U-Boot] [PATCH 10/13] common/cmd_universe.c: Fix GCC 4.6 build 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: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Fix: cmd_universe.c: In function 'universe_init': cmd_universe.c:49:17: warning: variable 'lastError' set but not used [-Wunused-but-set-variable] Signed-off-by: Wolfgang Denk --- common/cmd_universe.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/common/cmd_universe.c b/common/cmd_universe.c index a86a574..58384f3 100644 --- a/common/cmd_universe.c +++ b/common/cmd_universe.c @@ -46,7 +46,7 @@ static UNI_DEV *dev; int universe_init(void) { - int j, result, lastError = 0; + int j, result; pci_dev_t busdevfn; unsigned int val; @@ -126,8 +126,6 @@ int universe_init(void) break_30: free(dev); break_20: - lastError = result; - return result; }