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)
commit3689ad7ed6a836c4eec5e7bdd17a11a79591bef9
tree2c83bd991f64e44c704b8f33fbc336f9d35928df
parentb0d8a69d08069f4f4b1d9670d57a7e22da6e6c6a
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