mirror of
https://github.com/torvalds/linux.git
synced 2024-11-18 10:01:43 +00:00
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>
This commit is contained in:
parent
94b4624986
commit
055d752f85
@ -65,12 +65,6 @@ void sh_mobile_setup_cpuidle(void)
|
|||||||
struct cpuidle_state *state;
|
struct cpuidle_state *state;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
|
||||||
for (i = 0; i < CPUIDLE_STATE_MAX; i++) {
|
|
||||||
drv->states[i].name[0] = '\0';
|
|
||||||
drv->states[i].desc[0] = '\0';
|
|
||||||
}
|
|
||||||
|
|
||||||
i = CPUIDLE_DRIVER_STATE_START;
|
i = CPUIDLE_DRIVER_STATE_START;
|
||||||
|
|
||||||
state = &drv->states[i++];
|
state = &drv->states[i++];
|
||||||
|
Loading…
Reference in New Issue
Block a user