]> rtime.felk.cvut.cz Git - linux-imx.git/commit
ARM: OMAP3: cpuidle - simplify next_valid_state
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 24 Apr 2012 14:05:36 +0000 (16:05 +0200)
committerKevin Hilman <khilman@ti.com>
Thu, 3 May 2012 20:19:31 +0000 (13:19 -0700)
commite92a45868150c7c79cd1cf2fa26ef42597623a8c
treed1a4b8b7fd427dac9c666385f061888cdf0d3796
parent6622ac55a6a15670a04b5790e7ee2778a6f8c4e0
ARM: OMAP3: cpuidle - simplify next_valid_state

Simplify the indentation by removing the useless 'else' statement.
Remove the first loop for the 'idx' search as we have it already
with the 'index' passed as parameter.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Jean Pihet <j-pihet@ti.com>
Reviewed-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Tested-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Tested-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
arch/arm/mach-omap2/cpuidle34xx.c