From patchwork Mon Mar 11 14:36:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 2249101 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id C75DDDF5B1 for ; Mon, 11 Mar 2013 14:38:49 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UF3pm-00009w-TB; Mon, 11 Mar 2013 14:36:15 +0000 Received: from mail-bk0-x22f.google.com ([2a00:1450:4008:c01::22f]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UF3pj-00009P-9M for linux-arm-kernel@lists.infradead.org; Mon, 11 Mar 2013 14:36:12 +0000 Received: by mail-bk0-f47.google.com with SMTP id jc3so1710367bkc.34 for ; Mon, 11 Mar 2013 07:36:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to:cc :content-type; bh=LOfwpTGOb0EqbKSvC26jfPqdogdiPzgogm+W1OznFhI=; b=scSBAVfWcBZhImgF0Un6HiBrOf+bqJEus8meDq+FwQn6u9BLsoXfRHeVr+jxwB/Xtj Hk8wOZETD2OyiPqDNuH9OhY2d2JeUBoVRSZ0RW7u7bFl7Tz8oLSWH3SBiIkNSwhWq1vG VGQ22uAsiJCTOG7GHJjYD+Wrv3mFHKXHLoTC2idpl9HviTfspKwbW/pRKtFfFBNU4sLd b/sWfnCsNt9N9LNfIqfvfodRmfpjsJDkbwbURlixjD5xmmdLsD8a5FOQ8RdCOTOAWBxy VCi8D7feGyQ2/FoM2eOhAcCkqlmbBtle0HyUqf1f3QTujH7ywVANSbFmoOCBxvTLolAL 1KeA== MIME-Version: 1.0 X-Received: by 10.205.104.8 with SMTP id dk8mr2963751bkc.34.1363012569335; Mon, 11 Mar 2013 07:36:09 -0700 (PDT) Received: by 10.204.30.210 with HTTP; Mon, 11 Mar 2013 07:36:09 -0700 (PDT) Date: Mon, 11 Mar 2013 22:36:09 +0800 Message-ID: Subject: [PATCH -next] mmc: wmt-sdmmc: remove unused variable in wmt_complete_data_request() From: Wei Yongjun To: linux@prisktech.co.nz, cjb@laptop.org, grant.likely@secretlab.ca, rob.herring@calxeda.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130311_103611_519494_1EA11673 X-CRM114-Status: UNSURE ( 9.22 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (weiyj.lk[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: yongjun_wei@trendmicro.com.cn, linux-mmc@vger.kernel.org, devicetree-discuss@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Wei Yongjun The variable 'mmc' is initialized but never used otherwise, so remove the unused variable. Signed-off-by: Wei Yongjun Acked-by: Tony Prisk --- drivers/mmc/host/wmt-sdmmc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/mmc/host/wmt-sdmmc.c b/drivers/mmc/host/wmt-sdmmc.c index 154f0e8..41d5802 100644 --- a/drivers/mmc/host/wmt-sdmmc.c +++ b/drivers/mmc/host/wmt-sdmmc.c @@ -348,13 +348,11 @@ static void wmt_complete_data_request(struct wmt_mci_priv *priv) static irqreturn_t wmt_mci_dma_isr(int irq_num, void *data) { - struct mmc_host *mmc; struct wmt_mci_priv *priv; int status; priv = (struct wmt_mci_priv *)data; - mmc = priv->mmc; status = readl(priv->sdmmc_base + SDDMA_CCR) & 0x0F;