]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
mmc: via-sdmmc: Remove set-but-unused variable.
authorChris Ball <cjb@laptop.org>
Wed, 23 Feb 2011 22:29:13 +0000 (17:29 -0500)
committerChris Ball <cjb@laptop.org>
Tue, 15 Mar 2011 17:49:44 +0000 (13:49 -0400)
drivers/mmc/host/via-sdmmc.c: In function ‘via_reset_pcictrl’:
drivers/mmc/host/via-sdmmc.c:805:8: warning: variable ‘addrbase’ set but
not used [-Wunused-but-set-variable]

Signed-off-by: Chris Ball <cjb@laptop.org>
Cc: Harald Welte <HaraldWelte@viatech.com>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
drivers/mmc/host/via-sdmmc.c

index 9ed84ddb478060358cce983c0996b6268b1edd93..8c5b4881ccd6068fc766fd6e0ae77dbbe2669664 100644 (file)
@@ -802,12 +802,9 @@ static const struct mmc_host_ops via_sdc_ops = {
 
 static void via_reset_pcictrl(struct via_crdr_mmc_host *host)
 {
-       void __iomem *addrbase;
        unsigned long flags;
        u8 gatt;
 
-       addrbase = host->pcictrl_mmiobase;
-
        spin_lock_irqsave(&host->lock, flags);
 
        via_save_pcictrlreg(host);