ia64/xen-unstable

changeset 18744:6a8fea290af5

cpufreq.c: shut up compiler about cpufreq_dom

Some versions of GCC are too stupid to figure out that cpufreq_dom is
only used if !!domexist and always set in that case, and complain that
it may be used uninitialised.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Oct 29 16:58:05 2008 +0000 (2008-10-29)
parents ae100f264f6a
children 85a2a54c70c8
files xen/drivers/cpufreq/cpufreq.c
line diff
     1.1 --- a/xen/drivers/cpufreq/cpufreq.c	Wed Oct 29 13:09:37 2008 +0000
     1.2 +++ b/xen/drivers/cpufreq/cpufreq.c	Wed Oct 29 16:58:05 2008 +0000
     1.3 @@ -80,7 +80,7 @@ int cpufreq_add_cpu(unsigned int cpu)
     1.4      unsigned int dom, domexist = 0;
     1.5      unsigned int j;
     1.6      struct list_head *pos;
     1.7 -    struct cpufreq_dom *cpufreq_dom;
     1.8 +    struct cpufreq_dom *cpufreq_dom = NULL;
     1.9      struct cpufreq_policy new_policy;
    1.10      struct cpufreq_policy *policy;
    1.11      struct processor_performance *perf = &processor_pminfo[cpu]->perf;