cpufreq: Rearrange cpufreq_add_dev()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 7 Apr 2016 01:31:57 +0000 (03:31 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 8 Apr 2016 23:37:07 +0000 (01:37 +0200)
commita794d6138cda391b6a9ba28c4cf27651415669c6
tree0a5de8326c028cd388083d083a772d2e4e0662f7
parentcd73e9b01f635d25dbd17ed090f9351becf00280
cpufreq: Rearrange cpufreq_add_dev()

Reorganize the code in cpufreq_add_dev() to avoid using the ret
variable and reduce the indentation level in it.

No functional changes.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/cpufreq.c