Skip to contentSkip to conversation

mmc: wmt-sdmmc: remove unused variable in wmt_complete_data_request()

PATCH New Wei Yongjun 3 participants 3 messages Mar 11, 2013 – Mar 22, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mmc: wmt-sdmmc: remove unused variable in wmt_complete_data_request()

From: Wei Yongjun <[email protected]>

The variable 'mmc' is initialized but never used
otherwise, so remove the unused variable.

---
 drivers/mmc/host/wmt-sdmmc.c | 2 --
 1 file changed, 2 deletions(-)
drivers/mmc/host/wmt-sdmmc.c +0 -2
index 154f0e8..41d5802 100644
@@ -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;
 
#1 lore raw

PATCH 1/1 mmc: wmt-sdmmc: remove unused variable in wmt_complete_data_request()

Quoted 19 lines · Wei Yongjun

From: Wei Yongjun <[email protected]>

The variable 'mmc' is initialized but never used
otherwise, so remove the unused variable.

---
 drivers/mmc/host/wmt-sdmmc.c | 2 --
 1 file changed, 2 deletions(-)
drivers/mmc/host/wmt-sdmmc.c +0 -0
index 154f0e8..41d5802 100644
@@ -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)
 {

drivers/mmc/host/wmt-sdmmc.c static void wmt_complete_data_request(struct wmt_mci_priv *priv) · line 358

Quoted 10 lines
drivers/mmc/host/wmt-sdmmc.c +0 -2
-	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;
 
#2 lore raw

PATCH 1/1 mmc: wmt-sdmmc: remove unused variable in wmt_complete_data_request()

Hi,

Quoted 24 lines · Tony Prisk
Quoted 23 lines · Wei Yongjun

From: Wei Yongjun <[email protected]>

The variable 'mmc' is initialized but never used
otherwise, so remove the unused variable.

---
 drivers/mmc/host/wmt-sdmmc.c | 2 --
 1 file changed, 2 deletions(-)
drivers/mmc/host/wmt-sdmmc.c +0 -1
index 154f0e8..41d5802 100644
@@ -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;
 
Quoted 8 lines

drivers/mmc/host/wmt-sdmmc.c static void wmt_complete_data_request(struct wmt_mci_priv *priv) · line 358

Quoted 6 lines
drivers/mmc/host/wmt-sdmmc.c +0 -1
 	priv = (struct wmt_mci_priv *)data;
-	mmc = priv->mmc;
 
 	status = readl(priv->sdmmc_base + SDDMA_CCR) & 0x0F;
 

Thanks, pushed to mmc-next for 3.10.

- Chris.

Signature · 2 lines
Chris Ball   <[email protected]>   <http://printf.net/>
One Laptop Per Child