From patchwork Thu Nov 24 13:57:47 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Schwierzeck X-Patchwork-Id: 127518 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 838291007DD for ; Fri, 25 Nov 2011 00:58:32 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 85F5F281E8; Thu, 24 Nov 2011 14:58:29 +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 w17JciNBFH34; Thu, 24 Nov 2011 14:58:29 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CE57528242; Thu, 24 Nov 2011 14:58:20 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 941A628249 for ; Thu, 24 Nov 2011 14:58:15 +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 TQuS2RzBNHRB for ; Thu, 24 Nov 2011 14:58:15 +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-fx0-f44.google.com (mail-fx0-f44.google.com [209.85.161.44]) by theia.denx.de (Postfix) with ESMTPS id B761528212 for ; Thu, 24 Nov 2011 14:58:06 +0100 (CET) Received: by faaq16 with SMTP id q16so1087274faa.3 for ; Thu, 24 Nov 2011 05:58:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=eHf08OiByNjeId7TbpVzOiZlXXzTRNKnXse18ed/i4Q=; b=OEF3kxR7mWLPG1a7MVJx5GBudNpMCBLUyfbANKR0MO7046cN3yDni45iWy6Ox8ljwO uyshtSYaCfgtwUuljBLOD4gbvOI2KVWbVyMoAiOdQiYeHvksGxVq40rHNiCc55e/Uyrm BlxfaQk9L3Hhg/xOv+iZhMLs02VvYO2Fp91jM= Received: by 10.204.128.199 with SMTP id l7mr18747137bks.27.1322143085762; Thu, 24 Nov 2011 05:58:05 -0800 (PST) Received: from pc000853.sas.sys.sphairon.com (dslb-088-073-225-170.pools.arcor-ip.net. [88.73.225.170]) by mx.google.com with ESMTPS id hy13sm15911381bkc.0.2011.11.24.05.58.04 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 24 Nov 2011 05:58:05 -0800 (PST) From: Daniel Schwierzeck To: u-boot@lists.denx.de Date: Thu, 24 Nov 2011 14:57:47 +0100 Message-Id: <1322143076-20349-3-git-send-email-daniel.schwierzeck@googlemail.com> X-Mailer: git-send-email 1.7.7.2 In-Reply-To: <1322143076-20349-1-git-send-email-daniel.schwierzeck@googlemail.com> References: <1322143076-20349-1-git-send-email-daniel.schwierzeck@googlemail.com> Cc: Thomas Langer , Shinya Kuribayashi Subject: [U-Boot] [PATCH 02/11] MIPS: board.c: fix warning if CONFIG_CMD_NET is not defined X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 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 board.c: In function 'board_init_r': board.c:280:8: warning: unused variable 's' Signed-off-by: Daniel Schwierzeck --- arch/mips/lib/board.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/arch/mips/lib/board.c b/arch/mips/lib/board.c index 9585db7..aac7690 100644 --- a/arch/mips/lib/board.c +++ b/arch/mips/lib/board.c @@ -266,7 +266,6 @@ void board_init_r(gd_t *id, ulong dest_addr) #ifndef CONFIG_ENV_IS_NOWHERE extern char *env_name_spec; #endif - char *s; bd_t *bd; gd = id; @@ -347,7 +346,7 @@ void board_init_r(gd_t *id, ulong dest_addr) /* Initialize from environment */ load_addr = getenv_ulong("loadaddr", 16, load_addr); #if defined(CONFIG_CMD_NET) - s = getenv("bootfile"); + const char *s = getenv("bootfile"); if (s) copy_filename(BootFile, s, sizeof(BootFile)); #endif