diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2009-09-16 20:25:07 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2009-09-17 14:07:51 -0400 |
commit | 982f6ffeeed5ef6104cfd72e517ff9e7a9270fda (patch) | |
tree | cfe3546c4983d29deb1794890dcfd26ea480296a /arch/mips/kernel | |
parent | 2882b0c63ac6085fd5c18959240b6f7d6ffb8d5b (diff) |
MIPS: Remove useless zero initializations.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel')
-rw-r--r-- | arch/mips/kernel/cpu-bugs64.c | 2 | ||||
-rw-r--r-- | arch/mips/kernel/cpu-probe.c | 4 | ||||
-rw-r--r-- | arch/mips/kernel/kspd.c | 6 | ||||
-rw-r--r-- | arch/mips/kernel/mips-mt-fpaff.c | 2 | ||||
-rw-r--r-- | arch/mips/kernel/mips-mt.c | 10 | ||||
-rw-r--r-- | arch/mips/kernel/rtlx.c | 2 | ||||
-rw-r--r-- | arch/mips/kernel/setup.c | 2 | ||||
-rw-r--r-- | arch/mips/kernel/smtc.c | 10 | ||||
-rw-r--r-- | arch/mips/kernel/vpe.c | 2 |
9 files changed, 20 insertions, 20 deletions
diff --git a/arch/mips/kernel/cpu-bugs64.c b/arch/mips/kernel/cpu-bugs64.c index 02b7713cf71c..408d0a07b3a3 100644 --- a/arch/mips/kernel/cpu-bugs64.c +++ b/arch/mips/kernel/cpu-bugs64.c | |||
@@ -167,7 +167,7 @@ static inline void check_mult_sh(void) | |||
167 | panic(bug64hit, !R4000_WAR ? r4kwar : nowar); | 167 | panic(bug64hit, !R4000_WAR ? r4kwar : nowar); |
168 | } | 168 | } |
169 | 169 | ||
170 | static volatile int daddi_ov __cpuinitdata = 0; | 170 | static volatile int daddi_ov __cpuinitdata; |
171 | 171 | ||
172 | asmlinkage void __init do_daddi_ov(struct pt_regs *regs) | 172 | asmlinkage void __init do_daddi_ov(struct pt_regs *regs) |
173 | { | 173 | { |
diff --git a/arch/mips/kernel/cpu-probe.c b/arch/mips/kernel/cpu-probe.c index 6e4807a19c00..4579d5c12da9 100644 --- a/arch/mips/kernel/cpu-probe.c +++ b/arch/mips/kernel/cpu-probe.c | |||
@@ -31,7 +31,7 @@ | |||
31 | * The wait instruction stops the pipeline and reduces the power consumption of | 31 | * The wait instruction stops the pipeline and reduces the power consumption of |
32 | * the CPU very much. | 32 | * the CPU very much. |
33 | */ | 33 | */ |
34 | void (*cpu_wait)(void) = NULL; | 34 | void (*cpu_wait)(void); |
35 | 35 | ||
36 | static void r3081_wait(void) | 36 | static void r3081_wait(void) |
37 | { | 37 | { |
@@ -112,7 +112,7 @@ static void au1k_wait(void) | |||
112 | : : "r" (au1k_wait)); | 112 | : : "r" (au1k_wait)); |
113 | } | 113 | } |
114 | 114 | ||
115 | static int __initdata nowait = 0; | 115 | static int __initdata nowait; |
116 | 116 | ||
117 | static int __init wait_disable(char *s) | 117 | static int __init wait_disable(char *s) |
118 | { | 118 | { |
diff --git a/arch/mips/kernel/kspd.c b/arch/mips/kernel/kspd.c index fd6e51224034..f2397f00db43 100644 --- a/arch/mips/kernel/kspd.c +++ b/arch/mips/kernel/kspd.c | |||
@@ -31,7 +31,7 @@ | |||
31 | #include <asm/rtlx.h> | 31 | #include <asm/rtlx.h> |
32 | #include <asm/kspd.h> | 32 | #include <asm/kspd.h> |
33 | 33 | ||
34 | static struct workqueue_struct *workqueue = NULL; | 34 | static struct workqueue_struct *workqueue; |
35 | static struct work_struct work; | 35 | static struct work_struct work; |
36 | 36 | ||
37 | extern unsigned long cpu_khz; | 37 | extern unsigned long cpu_khz; |
@@ -58,7 +58,7 @@ struct mtsp_syscall_generic { | |||
58 | }; | 58 | }; |
59 | 59 | ||
60 | static struct list_head kspd_notifylist; | 60 | static struct list_head kspd_notifylist; |
61 | static int sp_stopping = 0; | 61 | static int sp_stopping; |
62 | 62 | ||
63 | /* these should match with those in the SDE kit */ | 63 | /* these should match with those in the SDE kit */ |
64 | #define MTSP_SYSCALL_BASE 0 | 64 | #define MTSP_SYSCALL_BASE 0 |
@@ -328,7 +328,7 @@ static void sp_cleanup(void) | |||
328 | sys_chdir("/"); | 328 | sys_chdir("/"); |
329 | } | 329 | } |
330 | 330 | ||
331 | static int channel_open = 0; | 331 | static int channel_open; |
332 | 332 | ||
333 | /* the work handler */ | 333 | /* the work handler */ |
334 | static void sp_work(struct work_struct *unused) | 334 | static void sp_work(struct work_struct *unused) |
diff --git a/arch/mips/kernel/mips-mt-fpaff.c b/arch/mips/kernel/mips-mt-fpaff.c index 42461310b185..cbc6182b0065 100644 --- a/arch/mips/kernel/mips-mt-fpaff.c +++ b/arch/mips/kernel/mips-mt-fpaff.c | |||
@@ -18,7 +18,7 @@ | |||
18 | cpumask_t mt_fpu_cpumask; | 18 | cpumask_t mt_fpu_cpumask; |
19 | 19 | ||
20 | static int fpaff_threshold = -1; | 20 | static int fpaff_threshold = -1; |
21 | unsigned long mt_fpemul_threshold = 0; | 21 | unsigned long mt_fpemul_threshold; |
22 | 22 | ||
23 | /* | 23 | /* |
24 | * Replacement functions for the sys_sched_setaffinity() and | 24 | * Replacement functions for the sys_sched_setaffinity() and |
diff --git a/arch/mips/kernel/mips-mt.c b/arch/mips/kernel/mips-mt.c index d01665a453f5..b2259e7cd829 100644 --- a/arch/mips/kernel/mips-mt.c +++ b/arch/mips/kernel/mips-mt.c | |||
@@ -125,10 +125,10 @@ void mips_mt_regdump(unsigned long mvpctl) | |||
125 | local_irq_restore(flags); | 125 | local_irq_restore(flags); |
126 | } | 126 | } |
127 | 127 | ||
128 | static int mt_opt_norps = 0; | 128 | static int mt_opt_norps; |
129 | static int mt_opt_rpsctl = -1; | 129 | static int mt_opt_rpsctl = -1; |
130 | static int mt_opt_nblsu = -1; | 130 | static int mt_opt_nblsu = -1; |
131 | static int mt_opt_forceconfig7 = 0; | 131 | static int mt_opt_forceconfig7; |
132 | static int mt_opt_config7 = -1; | 132 | static int mt_opt_config7 = -1; |
133 | 133 | ||
134 | static int __init rps_disable(char *s) | 134 | static int __init rps_disable(char *s) |
@@ -161,8 +161,8 @@ static int __init config7_set(char *str) | |||
161 | __setup("config7=", config7_set); | 161 | __setup("config7=", config7_set); |
162 | 162 | ||
163 | /* Experimental cache flush control parameters that should go away some day */ | 163 | /* Experimental cache flush control parameters that should go away some day */ |
164 | int mt_protiflush = 0; | 164 | int mt_protiflush; |
165 | int mt_protdflush = 0; | 165 | int mt_protdflush; |
166 | int mt_n_iflushes = 1; | 166 | int mt_n_iflushes = 1; |
167 | int mt_n_dflushes = 1; | 167 | int mt_n_dflushes = 1; |
168 | 168 | ||
@@ -194,7 +194,7 @@ static int __init ndflush(char *s) | |||
194 | } | 194 | } |
195 | __setup("ndflush=", ndflush); | 195 | __setup("ndflush=", ndflush); |
196 | 196 | ||
197 | static unsigned int itc_base = 0; | 197 | static unsigned int itc_base; |
198 | 198 | ||
199 | static int __init set_itc_base(char *str) | 199 | static int __init set_itc_base(char *str) |
200 | { | 200 | { |
diff --git a/arch/mips/kernel/rtlx.c b/arch/mips/kernel/rtlx.c index 4ce93aa7b372..a10ebfdc28ae 100644 --- a/arch/mips/kernel/rtlx.c +++ b/arch/mips/kernel/rtlx.c | |||
@@ -57,7 +57,7 @@ static struct chan_waitqueues { | |||
57 | } channel_wqs[RTLX_CHANNELS]; | 57 | } channel_wqs[RTLX_CHANNELS]; |
58 | 58 | ||
59 | static struct vpe_notifications notify; | 59 | static struct vpe_notifications notify; |
60 | static int sp_stopping = 0; | 60 | static int sp_stopping; |
61 | 61 | ||
62 | extern void *vpe_get_shared(int index); | 62 | extern void *vpe_get_shared(int index); |
63 | 63 | ||
diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c index 2950b97253b7..2b290d70083e 100644 --- a/arch/mips/kernel/setup.c +++ b/arch/mips/kernel/setup.c | |||
@@ -441,7 +441,7 @@ static void __init bootmem_init(void) | |||
441 | * initialization hook for anything else was introduced. | 441 | * initialization hook for anything else was introduced. |
442 | */ | 442 | */ |
443 | 443 | ||
444 | static int usermem __initdata = 0; | 444 | static int usermem __initdata; |
445 | 445 | ||
446 | static int __init early_parse_mem(char *p) | 446 | static int __init early_parse_mem(char *p) |
447 | { | 447 | { |
diff --git a/arch/mips/kernel/smtc.c b/arch/mips/kernel/smtc.c index c16bb6d6c25c..1a466baf0edf 100644 --- a/arch/mips/kernel/smtc.c +++ b/arch/mips/kernel/smtc.c | |||
@@ -95,14 +95,14 @@ void init_smtc_stats(void); | |||
95 | 95 | ||
96 | /* Global SMTC Status */ | 96 | /* Global SMTC Status */ |
97 | 97 | ||
98 | unsigned int smtc_status = 0; | 98 | unsigned int smtc_status; |
99 | 99 | ||
100 | /* Boot command line configuration overrides */ | 100 | /* Boot command line configuration overrides */ |
101 | 101 | ||
102 | static int vpe0limit; | 102 | static int vpe0limit; |
103 | static int ipibuffers = 0; | 103 | static int ipibuffers; |
104 | static int nostlb = 0; | 104 | static int nostlb; |
105 | static int asidmask = 0; | 105 | static int asidmask; |
106 | unsigned long smtc_asid_mask = 0xff; | 106 | unsigned long smtc_asid_mask = 0xff; |
107 | 107 | ||
108 | static int __init vpe0tcs(char *str) | 108 | static int __init vpe0tcs(char *str) |
@@ -151,7 +151,7 @@ __setup("asidmask=", asidmask_set); | |||
151 | 151 | ||
152 | #ifdef CONFIG_SMTC_IDLE_HOOK_DEBUG | 152 | #ifdef CONFIG_SMTC_IDLE_HOOK_DEBUG |
153 | 153 | ||
154 | static int hang_trig = 0; | 154 | static int hang_trig; |
155 | 155 | ||
156 | static int __init hangtrig_enable(char *s) | 156 | static int __init hangtrig_enable(char *s) |
157 | { | 157 | { |
diff --git a/arch/mips/kernel/vpe.c b/arch/mips/kernel/vpe.c index 9a1ab7e87fd4..eb6c4c5b7fbe 100644 --- a/arch/mips/kernel/vpe.c +++ b/arch/mips/kernel/vpe.c | |||
@@ -74,7 +74,7 @@ static const int minor = 1; /* fixed for now */ | |||
74 | 74 | ||
75 | #ifdef CONFIG_MIPS_APSP_KSPD | 75 | #ifdef CONFIG_MIPS_APSP_KSPD |
76 | static struct kspd_notifications kspd_events; | 76 | static struct kspd_notifications kspd_events; |
77 | static int kspd_events_reqd = 0; | 77 | static int kspd_events_reqd; |
78 | #endif | 78 | #endif |
79 | 79 | ||
80 | /* grab the likely amount of memory we will need. */ | 80 | /* grab the likely amount of memory we will need. */ |