]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
mmc: sdhci-omap: Remove redundant structure assignments
authorFaiz Abbas <faiz_abbas@ti.com>
Wed, 21 Nov 2018 10:33:57 +0000 (16:03 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 17 Dec 2018 07:26:24 +0000 (08:26 +0100)
The sdhci_execute_tuning() function has assignment of
private pointers multiple times. Remove the redundant assignment.

Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-omap.c

index 4fad47926743057f6065ee337f09dc6ca1354118..f588ab679cb0b0363dee108530e14daa8c47cec6 100644 (file)
@@ -296,10 +296,6 @@ static int sdhci_omap_execute_tuning(struct mmc_host *mmc, u32 opcode)
        int ret = 0;
        u32 reg;
 
-       pltfm_host = sdhci_priv(host);
-       omap_host = sdhci_pltfm_priv(pltfm_host);
-       dev = omap_host->dev;
-
        /* clock tuning is not needed for upto 52MHz */
        if (ios->clock <= 52000000)
                return 0;