msm: smd: ifdef adjustment to remove unused variables
authorDavid Brown <davidb@codeaurora.org>
Fri, 12 Nov 2010 21:49:52 +0000 (13:49 -0800)
committerDaniel Walker <dwalker@codeaurora.org>
Tue, 16 Nov 2010 20:25:38 +0000 (12:25 -0800)
Put some variables inside of the same ifdef as the code that uses
them.

arch/arm/mach-msm/smd_debug.c: In function 'smsm_print_sleep_info':
arch/arm/mach-msm/smd_debug.c:274: warning: unused variable 'int_info'
arch/arm/mach-msm/smd_debug.c:273: warning: unused variable 'gpio'

Signed-off-by: David Brown <davidb@codeaurora.org>
[dwalker@codeaurora.org: changed the commit text a little.]
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
arch/arm/mach-msm/smd_debug.c

index f91c3b7..8736aff 100644 (file)
@@ -270,8 +270,10 @@ void smsm_print_sleep_info(void)
 {
        unsigned long flags;
        uint32_t *ptr;
+#ifndef CONFIG_ARCH_MSM_SCORPION
        struct tramp_gpio_smem *gpio;
        struct smsm_interrupt_info *int_info;
+#endif
 
 
        spin_lock_irqsave(&smem_lock, flags);