Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 055d752f authored by Daniel Lezcano's avatar Daniel Lezcano Committed by Rafael J. Wysocki
Browse files

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: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: default avatarSimon Horman <horms+renesas@verge.net.au>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 94b46249
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -65,12 +65,6 @@ void sh_mobile_setup_cpuidle(void)
	struct cpuidle_state *state;
	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;

	state = &drv->states[i++];