staging: mt7621-mmc: Remove redundant host->mmc->f_max write
authorGeorge Hilliard <thirtythreeforty@gmail.com>
Tue, 19 Mar 2019 02:20:09 +0000 (20:20 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Mar 2019 07:23:18 +0000 (08:23 +0100)
This is set once during initialization and never changed.  Don't bother
setting it again in the interrupt handler.

Signed-off-by: George Hilliard <thirtythreeforty@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-mmc/sd.c

index 6f0c939247cb2d9d09b543017ad62338963042f4..7d735f0f6d24b51d8451cc3978f5f4525a99c103 100644 (file)
@@ -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));
        }