From: George Hilliard Date: Tue, 19 Mar 2019 02:20:09 +0000 (-0600) Subject: staging: mt7621-mmc: Remove redundant host->mmc->f_max write X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=6d0e4698c89aaf4c420817c66348a006e260b101;p=linux.git staging: mt7621-mmc: Remove redundant host->mmc->f_max write This is set once during initialization and never changed. Don't bother setting it again in the interrupt handler. Signed-off-by: George Hilliard Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/mt7621-mmc/sd.c b/drivers/staging/mt7621-mmc/sd.c index 6f0c939247cb2..7d735f0f6d24b 100644 --- a/drivers/staging/mt7621-mmc/sd.c +++ b/drivers/staging/mt7621-mmc/sd.c @@ -209,7 +209,6 @@ static void msdc_tasklet_card(struct work_struct *work) host->card_inserted = inserted; if (!host->suspend) { - host->mmc->f_max = HOST_MAX_MCLK; mmc_detect_change(host->mmc, msecs_to_jiffies(20)); }