cpufreq: governor: CPUFREQ_GOV_POLICY_EXIT never fails
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 12 May 2016 13:13:35 +0000 (15:13 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 18 May 2016 00:27:32 +0000 (02:27 +0200)
commit36be3418eb769c66bc16eb1c9b402591cf1219b7
treef4ce2eab966b71b5644f79306e135cd9c52ff634
parentc749c64f45fa07d20e11af2e3f3caa9d7650d341
cpufreq: governor: CPUFREQ_GOV_POLICY_EXIT never fails

None of the cpufreq governors currently in the tree will ever fail
an invocation of the ->governor() callback with the event argument
equal to CPUFREQ_GOV_POLICY_EXIT (unless invoked with incorrect
arguments which doesn't matter anyway) and it wouldn't really
make sense to fail it, because the caller won't be able to handle
that failure in a meaningful way.

Accordingly, rearrange the code in the core to make it clear that
this call never fails.

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