]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: Use list_is_last() to check last entry of the policy list
authorGautham R Shenoy <ego@linux.vnet.ibm.com>
Wed, 27 Jan 2016 06:32:26 +0000 (12:02 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 27 Jan 2016 22:13:59 +0000 (23:13 +0100)
commit3e2852c095fa2cfc7640b6ead5f64138862ca925
tree08dc2311bca1e793dc9fdb9c8d3a346348bf0e78
parent6d785ea99676aca8d172a4ddbf806545cf8c9799
cpufreq: Use list_is_last() to check last entry of the policy list

Currently next_policy() explicitly checks if a policy is the last
policy in the cpufreq_policy_list. Use the standard list_is_last
primitive instead.

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