mmc: wmt-sdmmc: remove unused variable in wmt_complete_data_request()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 11 Mar 2013 14:36:09 +0000 (22:36 +0800)
committerChris Ball <cjb@laptop.org>
Fri, 22 Mar 2013 16:37:50 +0000 (12:37 -0400)
The variable 'mmc' is initialized but never used, so remove it.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Tony Prisk <linux@prisktech.co.nz>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/wmt-sdmmc.c

index c6d0015..74cbc9a 100644 (file)
@@ -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;