[PATCH 1/3] cpufreq: Fix compiler warning

From: Peter Osterlund
Date: Tue Nov 08 2005 - 11:26:29 EST


Fixe unused variable compiler warning when building cpufreq.c without
CONFIG_SMP.

Signed-off-by: Peter Osterlund <petero2@xxxxxxxxx>
---

drivers/cpufreq/cpufreq.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c
index 25acf47..4b11215 100644
--- a/drivers/cpufreq/cpufreq.c
+++ b/drivers/cpufreq/cpufreq.c
@@ -694,10 +694,6 @@ static int cpufreq_remove_dev (struct sy
unsigned int cpu = sys_dev->id;
unsigned long flags;
struct cpufreq_policy *data;
- struct sys_device *cpu_sys_dev;
-#ifdef CONFIG_SMP
- unsigned int j;
-#endif

cpufreq_debug_disable_ratelimit();
dprintk("unregistering CPU %u\n", cpu);
@@ -741,6 +737,8 @@ static int cpufreq_remove_dev (struct sy
* links afterwards.
*/
if (unlikely(cpus_weight(data->cpus) > 1)) {
+ struct sys_device *cpu_sys_dev;
+ unsigned int j;
for_each_cpu_mask(j, data->cpus) {
if (j == cpu)
continue;

--
Peter Osterlund - petero2@xxxxxxxxx
http://web.telia.com/~u89404340
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/