cpufreq: Remove unused for_each_policy macro
authorShaokun Zhang <zhangshaokun@hisilicon.com>
Tue, 6 Apr 2021 07:00:59 +0000 (15:00 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 8 Apr 2021 17:27:19 +0000 (19:27 +0200)
Macro 'for_each_policy' has become unused since commit
f963735a3ca3 ("cpufreq: Create for_each_{in}active_policy()"), so
remove it.

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

index 1d1b563cea4b8dd52ddb34c75ce148b0b7cb5c72..802abc925b2ae0ffcc287302e2f9f66ae9c23fc3 100644 (file)
@@ -42,9 +42,6 @@ static LIST_HEAD(cpufreq_policy_list);
 #define for_each_inactive_policy(__policy)             \
        for_each_suitable_policy(__policy, false)
 
-#define for_each_policy(__policy)                      \
-       list_for_each_entry(__policy, &cpufreq_policy_list, policy_list)
-
 /* Iterate over governors */
 static LIST_HEAD(cpufreq_governor_list);
 #define for_each_governor(__governor)                          \