power-supply: Use 'break' instead of 'continue' to end loop
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 4 Sep 2014 12:01:27 +0000 (17:31 +0530)
committerSebastian Reichel <sre@kernel.org>
Tue, 16 Sep 2014 09:01:30 +0000 (11:01 +0200)
In few routines, we need to end the do-while loop when no more "power-supplies"
are available. Currently we are doing 'continue' which will make the
'while(np)' conditional statement run again.

Skip this by doing a 'break' instead.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/power_supply_core.c

Simple merge