Skip to contentSkip to conversation

ARM: msm: Silence warning when CONFIG_MMC=n

PATCH New Stephen Boyd 1 participant 1 message Sep 17, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: msm: Silence warning when CONFIG_MMC=n

arch/arm/mach-msm/board-trout.c:67:6: warning: unused variable 'rc'

Just drop the #ifdef and do this unconditionally.

---
 arch/arm/mach-msm/board-trout.c | 3 ---
 1 file changed, 3 deletions(-)
arch/arm/mach-msm/board-trout.c +0 -3
index 4ba0800..7861c1b 100644
@@ -67,12 +67,9 @@ static void __init trout_init(void)
 
 	platform_add_devices(devices, ARRAY_SIZE(devices));
 
-#ifdef CONFIG_MMC
         rc = trout_init_mmc(system_rev);
         if (rc)
                 printk(KERN_CRIT "%s: MMC init failure (%d)\n", __func__, rc);
-#endif
-
 }
 
 static struct map_desc trout_io_desc[] __initdata = {
Signature · 2 lines
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by The Linux Foundation