From patchwork Fri Feb 24 12:23:05 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Virdi X-Patchwork-Id: 142824 X-Patchwork-Delegate: sr@denx.de 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 77EA9B6EEA for ; Fri, 24 Feb 2012 23:23:58 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5E9502808C; Fri, 24 Feb 2012 13:23:51 +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 k76E4EZMZqf1; Fri, 24 Feb 2012 13:23:51 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 726B42808D; Fri, 24 Feb 2012 13:23:36 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E7B3828078 for ; Fri, 24 Feb 2012 13:23:30 +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 jX9x4NDh9reu for ; Fri, 24 Feb 2012 13:23:30 +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 eu1sys200aog109.obsmtp.com (eu1sys200aog109.obsmtp.com [207.126.144.127]) by theia.denx.de (Postfix) with ESMTPS id 9775C28077 for ; Fri, 24 Feb 2012 13:23:27 +0100 (CET) Received: from beta.dmz-ap.st.com ([138.198.100.35]) (using TLSv1) by eu1sys200aob109.postini.com ([207.126.147.11]) with SMTP ID DSNKT0eBPR6AS1YBvqUO1VndwPxoEy/QeGfM@postini.com; Fri, 24 Feb 2012 12:23:30 UTC Received: from zeta.dmz-ap.st.com (ns6.st.com [138.198.234.13]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id C69BCE0; Fri, 24 Feb 2012 12:14:58 +0000 (GMT) Received: from Webmail-ap.st.com (eapex1hubcas3.st.com [10.80.176.67]) by zeta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 2A677AD0; Fri, 24 Feb 2012 12:23:23 +0000 (GMT) Received: from localhost (10.199.7.86) by Webmail-ap.st.com (10.80.176.7) with Microsoft SMTP Server (TLS) id 8.3.192.1; Fri, 24 Feb 2012 20:23:11 +0800 From: Amit Virdi To: Date: Fri, 24 Feb 2012 17:53:05 +0530 Message-ID: <1330086194-21762-3-git-send-email-amit.virdi@st.com> X-Mailer: git-send-email 1.7.2.2 In-Reply-To: <1330086194-21762-1-git-send-email-amit.virdi@st.com> References: <1330086194-21762-1-git-send-email-amit.virdi@st.com> MIME-Version: 1.0 Cc: armando.visconti@st.com, shiraz.hashim@st.com, Amit Virdi , sr@denx.de Subject: [U-Boot] [PATCH 02/11] st_smi: Remove compilation 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: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Signed-off-by: Amit Virdi --- drivers/mtd/st_smi.c | 5 ----- 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/drivers/mtd/st_smi.c b/drivers/mtd/st_smi.c index b514046..82f1fe1 100644 --- a/drivers/mtd/st_smi.c +++ b/drivers/mtd/st_smi.c @@ -323,24 +323,19 @@ static int smi_write(unsigned int *src_addr, unsigned int *dst_addr, unsigned int length, ulong bank_addr) { int banknum; - unsigned int WM; switch (bank_addr) { case SMIBANK0_BASE: banknum = BANK0; - WM = WM0; break; case SMIBANK1_BASE: banknum = BANK1; - WM = WM1; break; case SMIBANK2_BASE: banknum = BANK2; - WM = WM2; break; case SMIBANK3_BASE: banknum = BANK3; - WM = WM3; break; default: return -1;