From patchwork Sat Oct 29 19:41:41 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfgang Denk X-Patchwork-Id: 122570 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 7D3AEB6F7C for ; Sun, 30 Oct 2011 06:42:51 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C12AB29172; Sat, 29 Oct 2011 21:42:46 +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 kjd4C8Ao8b9e; Sat, 29 Oct 2011 21:42:46 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B312528C2E; Sat, 29 Oct 2011 21:42:25 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 16C7128BEB for ; Sat, 29 Oct 2011 21:41:58 +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 35Z7PG3j6LEv for ; Sat, 29 Oct 2011 21:41:57 +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.10]) by theia.denx.de (Postfix) with ESMTP id 5B6AF28F17 for ; Sat, 29 Oct 2011 21:41:50 +0200 (CEST) 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 36B96186DEC3 for ; Sat, 29 Oct 2011 21:42:38 +0200 (CEST) X-Auth-Info: 6K7oJLUHZa/WdnLm9o907NCyduVvQbey9H4oECMNid4= 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 55EF51C0015F for ; Sat, 29 Oct 2011 21:41:50 +0200 (CEST) Received: from gemini.denx.de (gemini.denx.de [10.0.0.2]) by diddl.denx.de (Postfix) with ESMTP id 36FB8C913106 for ; Sat, 29 Oct 2011 21:41:50 +0200 (CEST) Received: by gemini.denx.de (Postfix, from userid 500) id 2BC471809856; Sat, 29 Oct 2011 21:41:50 +0200 (CEST) From: Wolfgang Denk To: u-boot@lists.denx.de Date: Sat, 29 Oct 2011 21:41:41 +0200 Message-Id: <1319917301-14545-2-git-send-email-wd@denx.de> X-Mailer: git-send-email 1.7.6.4 In-Reply-To: <1319917301-14545-1-git-send-email-wd@denx.de> References: <1319917301-14545-1-git-send-email-wd@denx.de> Subject: [U-Boot] [PATCH 2/2] common/cmd_ide.c: fix GCC 4.6 build warnings 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_ide.c: In function 'ide_ident': cmd_ide.c:988:6: warning: variable 'do_retry' set but not used [-Wunused-but-set-variable] Delete the unused variable. Signed-off-by: Wolfgang Denk --- common/cmd_ide.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/common/cmd_ide.c b/common/cmd_ide.c index bbede1c..305c602 100644 --- a/common/cmd_ide.c +++ b/common/cmd_ide.c @@ -985,7 +985,6 @@ static void ide_ident(block_dev_desc_t *dev_desc) #ifdef CONFIG_ATAPI int retries = 0; - int do_retry = 0; #endif #ifdef CONFIG_TUNE_PIO @@ -1007,7 +1006,6 @@ static void ide_ident(block_dev_desc_t *dev_desc) dev_desc->if_type = IF_TYPE_IDE; #ifdef CONFIG_ATAPI - do_retry = 0; retries = 0; /* Warning: This will be tricky to read */