mmc: sdhci-acpi: remove unused struct sdhci_host variable
authorShawn Lin <shawn.lin@rock-chips.com>
Fri, 21 Jul 2017 01:19:50 +0000 (09:19 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 30 Aug 2017 12:01:32 +0000 (14:01 +0200)
It was never used and introduce a warning

drivers/mmc/host/sdhci-acpi.c: In function 'sdhci_acpi_sdio_probe_slot':
drivers/mmc/host/sdhci-acpi.c:297:21: warning: variable 'host' set but
not used [-Wunused-but-set-variable]

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-acpi.c

index ac678e9..2b1df88 100644 (file)
@@ -294,13 +294,10 @@ static int sdhci_acpi_sdio_probe_slot(struct platform_device *pdev,
                                      const char *hid, const char *uid)
 {
        struct sdhci_acpi_host *c = platform_get_drvdata(pdev);
-       struct sdhci_host *host;
 
        if (!c || !c->host)
                return 0;
 
-       host = c->host;
-
        /* Platform specific code during sdio probe slot goes here */
 
        return 0;