From patchwork Sun May 20 21:52:47 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anatolij Gustschin X-Patchwork-Id: 160288 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 40E35B6FAB for ; Mon, 21 May 2012 07:53:12 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 874B02809B; Sun, 20 May 2012 23:53:09 +0200 (CEST) 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 DHlPodDvjkXH; Sun, 20 May 2012 23:53:09 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4CB912808D; Sun, 20 May 2012 23:53:06 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id DE48728090 for ; Sun, 20 May 2012 23:52:53 +0200 (CEST) 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 snk-T6FuJboA for ; Sun, 20 May 2012 23:52:53 +0200 (CEST) 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.9]) by theia.denx.de (Postfix) with ESMTPS id CBC7E28089 for ; Sun, 20 May 2012 23:52:45 +0200 (CEST) Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3VwcL32pDNz4LDdg; Sun, 20 May 2012 23:52:43 +0200 (CEST) Received: from localhost (p4FDE7B14.dip.t-dialin.net [79.222.123.20]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA id 3VwcL26Dc2z4KK2r; Sun, 20 May 2012 23:52:42 +0200 (CEST) From: Anatolij Gustschin To: u-boot@lists.denx.de Date: Sun, 20 May 2012 23:52:47 +0200 Message-Id: <1337550767-31944-1-git-send-email-agust@denx.de> X-Mailer: git-send-email 1.7.1 Cc: Scott Wood Subject: [U-Boot] [PATCH] common/cmd_nand.c: Fix GCC 4.6 warning 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 cmd_nand.c: In function 'raw_access': cmd_nand.c:397:9: warning: variable 'rwsize' set but not used [-Wunused-but-set-variable] Signed-off-by: Anatolij Gustschin Cc: Scott Wood --- common/cmd_nand.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/common/cmd_nand.c b/common/cmd_nand.c index f060a31..fa44295 100644 --- a/common/cmd_nand.c +++ b/common/cmd_nand.c @@ -394,7 +394,6 @@ static int raw_access(nand_info_t *nand, ulong addr, loff_t off, ulong count, int read) { int ret = 0; - size_t rwsize; while (count--) { /* Raw access */ @@ -406,7 +405,6 @@ static int raw_access(nand_info_t *nand, ulong addr, loff_t off, ulong count, .mode = MTD_OOB_RAW }; - rwsize = nand->writesize + nand->oobsize; if (read) ret = nand->read_oob(nand, off, &ops); else