]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: Drop unnecessary check from cpufreq_policy_alloc()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 31 Aug 2016 01:11:31 +0000 (03:11 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 31 Aug 2016 22:29:10 +0000 (00:29 +0200)
commit5d471aa9b41778e8b53a3cc0901f4d4165e2e4fe
tree2c83bd991f64e44c704b8f33fbc336f9d35928df
parent5049cf3a5fbef77ef20d25f3b280f014cdcb545d
cpufreq: Drop unnecessary check from cpufreq_policy_alloc()

Since cpufreq_policy_alloc() doesn't use its dev variable for
anything useful, drop that variable from there along with the
NULL check against it.

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