OMAP2: remove unused wakeup_cpu
diff mbox series

Message ID 20191106120605.11571-1-ben.dooks@codethink.co.uk
State New
Headers show
Series
  • OMAP2: remove unused wakeup_cpu
Related show

Commit Message

Ben Dooks Nov. 6, 2019, 12:06 p.m. UTC
The wakeup_cpu variable in omap4_enter_lowpower() is set
but then is not used after this. Remove it to fix
the compiler warning:

arch/arm/mach-omap2/omap-mpuss-lowpower.c: In function âomap4_enter_lowpowerâ:
arch/arm/mach-omap2/omap-mpuss-lowpower.c:230:15: warning: variable âwakeup_cpuâ set but not used [-Wunused-but-set-variable]

Signed-off-by: Ben Dooks (Codethink) <ben.dooks@codethink.co.uk>
---
Cc: Tony Lindgren <tony@atomide.com>
Cc: Russell King <linux@armlinux.org.uk>
Cc: linux-omap@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
---
 arch/arm/mach-omap2/omap-mpuss-lowpower.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Tony Lindgren Nov. 11, 2019, 8:45 p.m. UTC | #1
Hi,

* Ben Dooks (Codethink) <ben.dooks@codethink.co.uk> [191106 04:06]:
> The wakeup_cpu variable in omap4_enter_lowpower() is set
> but then is not used after this. Remove it to fix
> the compiler warning:
> 
> arch/arm/mach-omap2/omap-mpuss-lowpower.c: In function âomap4_enter_lowpowerâ:
> arch/arm/mach-omap2/omap-mpuss-lowpower.c:230:15: warning: variable âwakeup_cpuâ set but not used [-Wunused-but-set-variable]

I have already queued up an earlier similar patch:

5395b5557acb ("ARM: OMAP2+: Remove unused wakeup_cpu")

Thanks,

Tony

Patch
diff mbox series

diff --git a/arch/arm/mach-omap2/omap-mpuss-lowpower.c b/arch/arm/mach-omap2/omap-mpuss-lowpower.c
index 2d8f90546591..67fa28532a3a 100644
--- a/arch/arm/mach-omap2/omap-mpuss-lowpower.c
+++ b/arch/arm/mach-omap2/omap-mpuss-lowpower.c
@@ -227,7 +227,6 @@  int omap4_enter_lowpower(unsigned int cpu, unsigned int power_state)
 {
 	struct omap4_cpu_pm_info *pm_info = &per_cpu(omap4_pm_info, cpu);
 	unsigned int save_state = 0, cpu_logic_state = PWRDM_POWER_RET;
-	unsigned int wakeup_cpu;
 
 	if (omap_rev() == OMAP4430_REV_ES1_0)
 		return -ENXIO;
@@ -292,7 +291,6 @@  int omap4_enter_lowpower(unsigned int cpu, unsigned int power_state)
 	 * secure devices, CPUx does WFI which can result in
 	 * domain transition
 	 */
-	wakeup_cpu = smp_processor_id();
 	pwrdm_set_next_pwrst(pm_info->pwrdm, PWRDM_POWER_ON);
 
 	pwrdm_post_transition(NULL);