From: Ulf Hansson Date: Wed, 3 Feb 2021 18:42:29 +0000 (+0100) Subject: mmc: dw_mmc: Drop redundant call to ->card_event callback X-Git-Tag: howlett/maple/20220722_2~3272^2~76 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=6bfe4f749e098b441eec19c0a789415a7cf35065;p=users%2Fjedix%2Flinux-maple.git 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. Signed-off-by: Ulf Hansson Reviewed-by: Jaehoon Chung --- diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c index 2f4de30f650b2..3974525e6f6a7 100644 --- a/drivers/mmc/host/dw_mmc.c +++ b/drivers/mmc/host/dw_mmc.c @@ -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)); }