Skip to content

Commit

Permalink
mmc: sdhci-pci: Remove set-but-unused variable.
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Wolfram Sang <[email protected]>
  • Loading branch information
cjb committed Mar 15, 2011
1 parent e4243f1 commit 24c3001
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/mmc/host/sdhci-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -908,9 +908,6 @@ static struct sdhci_pci_slot * __devinit sdhci_pci_probe_slot(
{
struct sdhci_pci_slot *slot;
struct sdhci_host *host;

resource_size_t addr;

int ret;

if (!(pci_resource_flags(pdev, bar) & IORESOURCE_MEM)) {
Expand Down Expand Up @@ -957,7 +954,6 @@ static struct sdhci_pci_slot * __devinit sdhci_pci_probe_slot(
goto free;
}

addr = pci_resource_start(pdev, bar);
host->ioaddr = pci_ioremap_bar(pdev, bar);
if (!host->ioaddr) {
dev_err(&pdev->dev, "failed to remap registers\n");
Expand Down

0 comments on commit 24c3001

Please sign in to comment.