cpufreq: Refactor cpufreq_set_policy()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 17 Feb 2014 21:56:35 +0000 (22:56 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 24 Feb 2014 12:37:43 +0000 (13:37 +0100)
commitd9a789c7a07e96eda7515e43932ee608dcece34d
tree5c368cadabe047b26214497340b87531b0e377e0
parentcfbf8d4857c26a8a307fb7cd258074c9dcd8c691
cpufreq: Refactor cpufreq_set_policy()

Reduce the rampant usage of goto and the indentation level in
cpufreq_set_policy() to improve the readability of that code.

No functional changes should result from that.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
drivers/cpufreq/cpufreq.c