cpufreq: merge 'if' blocks in __cpufreq_remove_dev_prepare()
authorViresh Kumar <viresh.kumar@linaro.org>
Fri, 2 Jan 2015 07:04:25 +0000 (12:34 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 23 Jan 2015 21:49:33 +0000 (22:49 +0100)
commitdb5f299574267c50067b967f898633d4dec7ecc4
tree2e43bcdfc8f54b4c363ec8b009a3d891fb10d24b
parent09347b2905169b361e8ff5d75308982165d61c13
cpufreq: merge 'if' blocks in __cpufreq_remove_dev_prepare()

There are two 'if' blocks here, checking for !cpufreq_driver->setpolicy and
has_target(). Both are actually doing the same thing, merge them.

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