Skip to contentSkip to conversation

ARM: tegra: cpuidle: Remove unused variables

PATCH In review Thierry Reding 2 participants 3 messages Apr 15, 2013 2 messages not in the archive

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

PATCH 1/1 ARM: tegra: cpuidle: Remove unused variables

Commit 0697598 ("ARM: tegra: cpuidle: remove useless initialization") removes the last usage of the drv variable from the Tegra20, Tegra30 and Tegra114 cpuidle drivers but forgot to remove the variable.

---
 arch/arm/mach-tegra/cpuidle-tegra114.c | 1 -
 arch/arm/mach-tegra/cpuidle-tegra20.c  | 1 -
 arch/arm/mach-tegra/cpuidle-tegra30.c  | 1 -
 3 files changed, 3 deletions(-)
arch/arm/mach-tegra/cpuidle-tegra114.c +0 -1
index c527cff..d6bea18 100644
@@ -37,7 +37,6 @@ int __init tegra114_cpuidle_init(void)
 	int ret;
 	unsigned int cpu;
 	struct cpuidle_device *dev;
-	struct cpuidle_driver *drv = &tegra_idle_driver;
 
 	ret = cpuidle_register_driver(&tegra_idle_driver);
 	if (ret) {
arch/arm/mach-tegra/cpuidle-tegra20.c +0 -1
index 7cb1d3a..a1d524d 100644
@@ -220,7 +220,6 @@ int __init tegra20_cpuidle_init(void)
 	int ret;
 	unsigned int cpu;
 	struct cpuidle_device *dev;
-	struct cpuidle_driver *drv = &tegra_idle_driver;
 
 #ifdef CONFIG_PM_SLEEP
 	tegra_tear_down_cpu = tegra20_tear_down_cpu;
arch/arm/mach-tegra/cpuidle-tegra30.c +0 -1
index 3fa95df..a308a3d 100644
@@ -152,7 +152,6 @@ int __init tegra30_cpuidle_init(void)
 	int ret;
 	unsigned int cpu;
 	struct cpuidle_device *dev;
-	struct cpuidle_driver *drv = &tegra_idle_driver;
 
 #ifdef CONFIG_PM_SLEEP
 	tegra_tear_down_cpu = tegra30_tear_down_cpu;
Signature · 1 line
1.8.2

A message that is not in the archive (sent off-list or not yet received): 1366011121-7858-1-git-send-email-thierry.reding-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB@public.gmane.org

#2 lore raw
Quoted 6 lines · Thierry Reding

Commit 0697598 ("ARM: tegra: cpuidle: remove useless initialization") removes the last usage of the drv variable from the Tegra20, Tegra30 and Tegra114 cpuidle drivers but forgot to remove the variable.

---

Hi Thierry,

thanks for the cleanup. Actually, that has been already fixed by the patches:

http://www.spinics.net/lists/arm-kernel/msg237945.html
* [V3 patch 15/19] ARM: tegra: cpuidle: use init/exit common routine for tegra3
http://www.spinics.net/lists/arm-kernel/msg237945.html

* [V3 patch 11/19] ARM: tegra: cpuidle: use init/exit common routine
http://www.spinics.net/lists/arm-kernel/msg237956.html

* [V3 patch 14/19] ARM: tegra: cpuidle: use init/exit common routine for tegra2
http://www.spinics.net/lists/arm-kernel/msg237965.html

Regards
-- Daniel

Signature · 5 lines
 <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw
Quoted 18 lines · Daniel Lezcano
Quoted 6 lines · Thierry Reding

Commit 0697598 ("ARM: tegra: cpuidle: remove useless initialization") removes the last usage of the drv variable from the Tegra20, Tegra30 and Tegra114 cpuidle drivers but forgot to remove the variable.

---

Hi Thierry,

thanks for the cleanup. Actually, that has been already fixed by the patches:

http://www.spinics.net/lists/arm-kernel/msg237945.html
* [V3 patch 15/19] ARM: tegra: cpuidle: use init/exit common routine for tegra3
http://www.spinics.net/lists/arm-kernel/msg237945.html

Quoted 6 lines

* [V3 patch 11/19] ARM: tegra: cpuidle: use init/exit common routine
http://www.spinics.net/lists/arm-kernel/msg237956.html

* [V3 patch 14/19] ARM: tegra: cpuidle: use init/exit common routine for tegra2
http://www.spinics.net/lists/arm-kernel/msg237965.html

I didn't see those for some reason. They apparently didn't make it to the linux-tegra mailing list and I wasn't watching the others too closely. Sorry for the noise.

Thierry