Re: [PATCH] cpufreq: Drop unnecessary arguments from two functions

2015-07-21 Thread Viresh Kumar
On 22-07-15, 04:09, Rafael J. Wysocki wrote: > static int cpufreq_remove_dev(struct device *dev, struct subsys_interface > *sif) > { > unsigned int cpu = dev->id; > + struct cpufreq_policy *policy = per_cpu(cpufreq_cpu_data, cpu); > int ret; > > /* > @@ -1530,7 +1525,6 @@

[PATCH] cpufreq: Drop unnecessary arguments from two functions

2015-07-21 Thread Rafael J. Wysocki
From: Rafael J. Wysocki The second sif argument of __cpufreq_remove_dev_prepare() is never used by it, so drop it. The second sif argument of __cpufreq_remove_dev_finish() is only used for one check that is not necessary if the policy is freed by cpufreq_remove_dev() itself, so make cpufreq_remo