Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mmc: sdhci-pci: Remove set-but-unused variable.

drivers/mmc/host/sdhci-pci.c: In function ‘sdhci_pci_probe_slot’:
drivers/mmc/host/sdhci-pci.c:913:18: warning: variable ‘addr’ set but
not used [-Wunused-but-set-variable]

Signed-off-by: Chris Ball <cjb@laptop.org>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>

-4
-4
drivers/mmc/host/sdhci-pci.c
··· 908 908 { 909 909 struct sdhci_pci_slot *slot; 910 910 struct sdhci_host *host; 911 - 912 - resource_size_t addr; 913 - 914 911 int ret; 915 912 916 913 if (!(pci_resource_flags(pdev, bar) & IORESOURCE_MEM)) { ··· 954 957 goto free; 955 958 } 956 959 957 - addr = pci_resource_start(pdev, bar); 958 960 host->ioaddr = pci_ioremap_bar(pdev, bar); 959 961 if (!host->ioaddr) { 960 962 dev_err(&pdev->dev, "failed to remap registers\n");