diff options
author | Daniel Lezcano <daniel.lezcano@linaro.org> | 2013-04-17 09:32:54 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-04-21 18:35:52 -0400 |
commit | 055d752f85f18abb2ad7e2193f61afefe36fd452 (patch) | |
tree | a865c2285146a75295f7b6a53c7afd4c73806b13 /arch/sh/kernel | |
parent | 94b4624986071a875871378f2a84e3f816764372 (diff) |
SH: cpuidle: remove pointless initialization
The driver is a global static variable automatically initialized to zero.
Removing the useless initialization in the init function.
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'arch/sh/kernel')
-rw-r--r-- | arch/sh/kernel/cpu/shmobile/cpuidle.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/sh/kernel/cpu/shmobile/cpuidle.c b/arch/sh/kernel/cpu/shmobile/cpuidle.c index 1ddc876d3b26..34bb5469c644 100644 --- a/arch/sh/kernel/cpu/shmobile/cpuidle.c +++ b/arch/sh/kernel/cpu/shmobile/cpuidle.c | |||
@@ -65,12 +65,6 @@ void sh_mobile_setup_cpuidle(void) | |||
65 | struct cpuidle_state *state; | 65 | struct cpuidle_state *state; |
66 | int i; | 66 | int i; |
67 | 67 | ||
68 | |||
69 | for (i = 0; i < CPUIDLE_STATE_MAX; i++) { | ||
70 | drv->states[i].name[0] = '\0'; | ||
71 | drv->states[i].desc[0] = '\0'; | ||
72 | } | ||
73 | |||
74 | i = CPUIDLE_DRIVER_STATE_START; | 68 | i = CPUIDLE_DRIVER_STATE_START; |
75 | 69 | ||
76 | state = &drv->states[i++]; | 70 | state = &drv->states[i++]; |