Skip to content

Commit 982f6ff

Browse files
committed
MIPS: Remove useless zero initializations.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent 2882b0c commit 982f6ff

22 files changed

Lines changed: 38 additions & 38 deletions

File tree

‎arch/mips/boot/elf2ecoff.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ struct sect {
5959
};
6060

6161
int *symTypeTable;
62-
int must_convert_endian = 0;
63-
int format_bigendian = 0;
62+
int must_convert_endian;
63+
int format_bigendian;
6464

6565
static void copy(int out, int in, off_t offset, off_t size)
6666
{

‎arch/mips/dec/prom/memory.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include <asm/sections.h>
1919

2020

21-
volatile unsigned long mem_err = 0; /* So we know an error occurred */
21+
volatile unsigned long mem_err; /* So we know an error occurred */
2222

2323
/*
2424
* Probe memory in 4MB chunks, waiting for an error to tell us we've fallen

‎arch/mips/emma/markeins/setup.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
extern void markeins_led(const char *);
3434

35-
static int bus_frequency = 0;
35+
static int bus_frequency;
3636

3737
static void markeins_machine_restart(char *command)
3838
{

‎arch/mips/fw/cfe/cfe_api.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ int cfe_iocb_dispatch(struct cfe_xiocb *xiocb);
4545
* passed in two registers each, and CFE expects one.
4646
*/
4747

48-
static int (*cfe_dispfunc) (intptr_t handle, intptr_t xiocb) = 0;
49-
static u64 cfe_handle = 0;
48+
static int (*cfe_dispfunc) (intptr_t handle, intptr_t xiocb);
49+
static u64 cfe_handle;
5050

5151
int cfe_init(u64 handle, u64 ept)
5252
{

‎arch/mips/kernel/cpu-bugs64.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ static inline void check_mult_sh(void)
167167
panic(bug64hit, !R4000_WAR ? r4kwar : nowar);
168168
}
169169

170-
static volatile int daddi_ov __cpuinitdata = 0;
170+
static volatile int daddi_ov __cpuinitdata;
171171

172172
asmlinkage void __init do_daddi_ov(struct pt_regs *regs)
173173
{

‎arch/mips/kernel/cpu-probe.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* The wait instruction stops the pipeline and reduces the power consumption of
3232
* the CPU very much.
3333
*/
34-
void (*cpu_wait)(void) = NULL;
34+
void (*cpu_wait)(void);
3535

3636
static void r3081_wait(void)
3737
{
@@ -112,7 +112,7 @@ static void au1k_wait(void)
112112
: : "r" (au1k_wait));
113113
}
114114

115-
static int __initdata nowait = 0;
115+
static int __initdata nowait;
116116

117117
static int __init wait_disable(char *s)
118118
{

‎arch/mips/kernel/kspd.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#include <asm/rtlx.h>
3232
#include <asm/kspd.h>
3333

34-
static struct workqueue_struct *workqueue = NULL;
34+
static struct workqueue_struct *workqueue;
3535
static struct work_struct work;
3636

3737
extern unsigned long cpu_khz;
@@ -58,7 +58,7 @@ struct mtsp_syscall_generic {
5858
};
5959

6060
static struct list_head kspd_notifylist;
61-
static int sp_stopping = 0;
61+
static int sp_stopping;
6262

6363
/* these should match with those in the SDE kit */
6464
#define MTSP_SYSCALL_BASE 0
@@ -328,7 +328,7 @@ static void sp_cleanup(void)
328328
sys_chdir("/");
329329
}
330330

331-
static int channel_open = 0;
331+
static int channel_open;
332332

333333
/* the work handler */
334334
static void sp_work(struct work_struct *unused)

‎arch/mips/kernel/mips-mt-fpaff.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
cpumask_t mt_fpu_cpumask;
1919

2020
static int fpaff_threshold = -1;
21-
unsigned long mt_fpemul_threshold = 0;
21+
unsigned long mt_fpemul_threshold;
2222

2323
/*
2424
* Replacement functions for the sys_sched_setaffinity() and

‎arch/mips/kernel/mips-mt.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,10 @@ void mips_mt_regdump(unsigned long mvpctl)
125125
local_irq_restore(flags);
126126
}
127127

128-
static int mt_opt_norps = 0;
128+
static int mt_opt_norps;
129129
static int mt_opt_rpsctl = -1;
130130
static int mt_opt_nblsu = -1;
131-
static int mt_opt_forceconfig7 = 0;
131+
static int mt_opt_forceconfig7;
132132
static int mt_opt_config7 = -1;
133133

134134
static int __init rps_disable(char *s)
@@ -161,8 +161,8 @@ static int __init config7_set(char *str)
161161
__setup("config7=", config7_set);
162162

163163
/* Experimental cache flush control parameters that should go away some day */
164-
int mt_protiflush = 0;
165-
int mt_protdflush = 0;
164+
int mt_protiflush;
165+
int mt_protdflush;
166166
int mt_n_iflushes = 1;
167167
int mt_n_dflushes = 1;
168168

@@ -194,7 +194,7 @@ static int __init ndflush(char *s)
194194
}
195195
__setup("ndflush=", ndflush);
196196

197-
static unsigned int itc_base = 0;
197+
static unsigned int itc_base;
198198

199199
static int __init set_itc_base(char *str)
200200
{

‎arch/mips/kernel/rtlx.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ static struct chan_waitqueues {
5757
} channel_wqs[RTLX_CHANNELS];
5858

5959
static struct vpe_notifications notify;
60-
static int sp_stopping = 0;
60+
static int sp_stopping;
6161

6262
extern void *vpe_get_shared(int index);
6363

0 commit comments

Comments
 (0)