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: 2249091 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 131B3DF5B1 for ; Mon, 11 Mar 2013 14:36:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752686Ab3CKOgL (ORCPT ); Mon, 11 Mar 2013 10:36:11 -0400 Received: from mail-bk0-f49.google.com ([209.85.214.49]:60965 "EHLO mail-bk0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751868Ab3CKOgK (ORCPT ); Mon, 11 Mar 2013 10:36:10 -0400 Received: by mail-bk0-f49.google.com with SMTP id w11so1723187bku.8 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 Cc: yongjun_wei@trendmicro.com.cn, linux-arm-kernel@lists.infradead.org, linux-mmc@vger.kernel.org, devicetree-discuss@lists.ozlabs.org Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.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(-) -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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;