Skip to contentSkip to conversation

mmc: dw_mmc: Drop redundant call to ->card_event callback

PATCH In review Ulf Hansson 2 participants 2 messages Feb 12, 2021 – Feb 18, 2021

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

PATCH 1/1 mmc: dw_mmc: Drop redundant call to ->card_event callback

The ->card_event callback isn't being used by any of the dw_mmc variants. It's likely a leftover from an earlier change, hence let's just drop the redundant call to it.

---
 drivers/mmc/host/dw_mmc.c | 2 --
 1 file changed, 2 deletions(-)
drivers/mmc/host/dw_mmc.c +0 -2
index a5244435556b..df327c89cec5 100644
@@ -2606,8 +2606,6 @@ static void dw_mci_handle_cd(struct dw_mci *host)
 {
 	struct dw_mci_slot *slot = host->slot;
 
-	if (slot->mmc->ops->card_event)
-		slot->mmc->ops->card_event(slot->mmc);
 	mmc_detect_change(slot->mmc,
 		msecs_to_jiffies(host->pdata->detect_delay_ms));
 }
Signature · 1 line
2.25.1
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Ulf Hansson

The ->card_event callback isn't being used by any of the dw_mmc variants. It's likely a leftover from an earlier change, hence let's just drop the redundant call to it.

Best Regards
Jaehoon Chung

Quoted 18 lines
---
 drivers/mmc/host/dw_mmc.c | 2 --
 1 file changed, 2 deletions(-)
drivers/mmc/host/dw_mmc.c +0 -2
index a5244435556b..df327c89cec5 100644
@@ -2606,8 +2606,6 @@ static void dw_mci_handle_cd(struct dw_mci *host)
 {
 	struct dw_mci_slot *slot = host->slot;
 
-	if (slot->mmc->ops->card_event)
-		slot->mmc->ops->card_event(slot->mmc);
 	mmc_detect_change(slot->mmc,
 		msecs_to_jiffies(host->pdata->detect_delay_ms));
 }