Commit 982f6ffe authored by Ralf Baechle's avatar Ralf Baechle

MIPS: Remove useless zero initializations.

Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 2882b0c6
...@@ -59,8 +59,8 @@ struct sect { ...@@ -59,8 +59,8 @@ struct sect {
}; };
int *symTypeTable; int *symTypeTable;
int must_convert_endian = 0; int must_convert_endian;
int format_bigendian = 0; int format_bigendian;
static void copy(int out, int in, off_t offset, off_t size) static void copy(int out, int in, off_t offset, off_t size)
{ {
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
#include <asm/sections.h> #include <asm/sections.h>
volatile unsigned long mem_err = 0; /* So we know an error occurred */ volatile unsigned long mem_err; /* So we know an error occurred */
/* /*
* Probe memory in 4MB chunks, waiting for an error to tell us we've fallen * Probe memory in 4MB chunks, waiting for an error to tell us we've fallen
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
extern void markeins_led(const char *); extern void markeins_led(const char *);
static int bus_frequency = 0; static int bus_frequency;
static void markeins_machine_restart(char *command) static void markeins_machine_restart(char *command)
{ {
......
...@@ -45,8 +45,8 @@ int cfe_iocb_dispatch(struct cfe_xiocb *xiocb); ...@@ -45,8 +45,8 @@ int cfe_iocb_dispatch(struct cfe_xiocb *xiocb);
* passed in two registers each, and CFE expects one. * passed in two registers each, and CFE expects one.
*/ */
static int (*cfe_dispfunc) (intptr_t handle, intptr_t xiocb) = 0; static int (*cfe_dispfunc) (intptr_t handle, intptr_t xiocb);
static u64 cfe_handle = 0; static u64 cfe_handle;
int cfe_init(u64 handle, u64 ept) int cfe_init(u64 handle, u64 ept)
{ {
......
...@@ -167,7 +167,7 @@ static inline void check_mult_sh(void) ...@@ -167,7 +167,7 @@ static inline void check_mult_sh(void)
panic(bug64hit, !R4000_WAR ? r4kwar : nowar); panic(bug64hit, !R4000_WAR ? r4kwar : nowar);
} }
static volatile int daddi_ov __cpuinitdata = 0; static volatile int daddi_ov __cpuinitdata;
asmlinkage void __init do_daddi_ov(struct pt_regs *regs) asmlinkage void __init do_daddi_ov(struct pt_regs *regs)
{ {
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
* The wait instruction stops the pipeline and reduces the power consumption of * The wait instruction stops the pipeline and reduces the power consumption of
* the CPU very much. * the CPU very much.
*/ */
void (*cpu_wait)(void) = NULL; void (*cpu_wait)(void);
static void r3081_wait(void) static void r3081_wait(void)
{ {
...@@ -112,7 +112,7 @@ static void au1k_wait(void) ...@@ -112,7 +112,7 @@ static void au1k_wait(void)
: : "r" (au1k_wait)); : : "r" (au1k_wait));
} }
static int __initdata nowait = 0; static int __initdata nowait;
static int __init wait_disable(char *s) static int __init wait_disable(char *s)
{ {
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
#include <asm/rtlx.h> #include <asm/rtlx.h>
#include <asm/kspd.h> #include <asm/kspd.h>
static struct workqueue_struct *workqueue = NULL; static struct workqueue_struct *workqueue;
static struct work_struct work; static struct work_struct work;
extern unsigned long cpu_khz; extern unsigned long cpu_khz;
...@@ -58,7 +58,7 @@ struct mtsp_syscall_generic { ...@@ -58,7 +58,7 @@ struct mtsp_syscall_generic {
}; };
static struct list_head kspd_notifylist; static struct list_head kspd_notifylist;
static int sp_stopping = 0; static int sp_stopping;
/* these should match with those in the SDE kit */ /* these should match with those in the SDE kit */
#define MTSP_SYSCALL_BASE 0 #define MTSP_SYSCALL_BASE 0
...@@ -328,7 +328,7 @@ static void sp_cleanup(void) ...@@ -328,7 +328,7 @@ static void sp_cleanup(void)
sys_chdir("/"); sys_chdir("/");
} }
static int channel_open = 0; static int channel_open;
/* the work handler */ /* the work handler */
static void sp_work(struct work_struct *unused) static void sp_work(struct work_struct *unused)
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
cpumask_t mt_fpu_cpumask; cpumask_t mt_fpu_cpumask;
static int fpaff_threshold = -1; static int fpaff_threshold = -1;
unsigned long mt_fpemul_threshold = 0; unsigned long mt_fpemul_threshold;
/* /*
* Replacement functions for the sys_sched_setaffinity() and * Replacement functions for the sys_sched_setaffinity() and
......
...@@ -125,10 +125,10 @@ void mips_mt_regdump(unsigned long mvpctl) ...@@ -125,10 +125,10 @@ void mips_mt_regdump(unsigned long mvpctl)
local_irq_restore(flags); local_irq_restore(flags);
} }
static int mt_opt_norps = 0; static int mt_opt_norps;
static int mt_opt_rpsctl = -1; static int mt_opt_rpsctl = -1;
static int mt_opt_nblsu = -1; static int mt_opt_nblsu = -1;
static int mt_opt_forceconfig7 = 0; static int mt_opt_forceconfig7;
static int mt_opt_config7 = -1; static int mt_opt_config7 = -1;
static int __init rps_disable(char *s) static int __init rps_disable(char *s)
...@@ -161,8 +161,8 @@ static int __init config7_set(char *str) ...@@ -161,8 +161,8 @@ static int __init config7_set(char *str)
__setup("config7=", config7_set); __setup("config7=", config7_set);
/* Experimental cache flush control parameters that should go away some day */ /* Experimental cache flush control parameters that should go away some day */
int mt_protiflush = 0; int mt_protiflush;
int mt_protdflush = 0; int mt_protdflush;
int mt_n_iflushes = 1; int mt_n_iflushes = 1;
int mt_n_dflushes = 1; int mt_n_dflushes = 1;
...@@ -194,7 +194,7 @@ static int __init ndflush(char *s) ...@@ -194,7 +194,7 @@ static int __init ndflush(char *s)
} }
__setup("ndflush=", ndflush); __setup("ndflush=", ndflush);
static unsigned int itc_base = 0; static unsigned int itc_base;
static int __init set_itc_base(char *str) static int __init set_itc_base(char *str)
{ {
......
...@@ -57,7 +57,7 @@ static struct chan_waitqueues { ...@@ -57,7 +57,7 @@ static struct chan_waitqueues {
} channel_wqs[RTLX_CHANNELS]; } channel_wqs[RTLX_CHANNELS];
static struct vpe_notifications notify; static struct vpe_notifications notify;
static int sp_stopping = 0; static int sp_stopping;
extern void *vpe_get_shared(int index); extern void *vpe_get_shared(int index);
......
...@@ -441,7 +441,7 @@ static void __init bootmem_init(void) ...@@ -441,7 +441,7 @@ static void __init bootmem_init(void)
* initialization hook for anything else was introduced. * initialization hook for anything else was introduced.
*/ */
static int usermem __initdata = 0; static int usermem __initdata;
static int __init early_parse_mem(char *p) static int __init early_parse_mem(char *p)
{ {
......
...@@ -95,14 +95,14 @@ void init_smtc_stats(void); ...@@ -95,14 +95,14 @@ void init_smtc_stats(void);
/* Global SMTC Status */ /* Global SMTC Status */
unsigned int smtc_status = 0; unsigned int smtc_status;
/* Boot command line configuration overrides */ /* Boot command line configuration overrides */
static int vpe0limit; static int vpe0limit;
static int ipibuffers = 0; static int ipibuffers;
static int nostlb = 0; static int nostlb;
static int asidmask = 0; static int asidmask;
unsigned long smtc_asid_mask = 0xff; unsigned long smtc_asid_mask = 0xff;
static int __init vpe0tcs(char *str) static int __init vpe0tcs(char *str)
...@@ -151,7 +151,7 @@ __setup("asidmask=", asidmask_set); ...@@ -151,7 +151,7 @@ __setup("asidmask=", asidmask_set);
#ifdef CONFIG_SMTC_IDLE_HOOK_DEBUG #ifdef CONFIG_SMTC_IDLE_HOOK_DEBUG
static int hang_trig = 0; static int hang_trig;
static int __init hangtrig_enable(char *s) static int __init hangtrig_enable(char *s)
{ {
......
...@@ -74,7 +74,7 @@ static const int minor = 1; /* fixed for now */ ...@@ -74,7 +74,7 @@ static const int minor = 1; /* fixed for now */
#ifdef CONFIG_MIPS_APSP_KSPD #ifdef CONFIG_MIPS_APSP_KSPD
static struct kspd_notifications kspd_events; static struct kspd_notifications kspd_events;
static int kspd_events_reqd = 0; static int kspd_events_reqd;
#endif #endif
/* grab the likely amount of memory we will need. */ /* grab the likely amount of memory we will need. */
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
static void __init serial_init(void); static void __init serial_init(void);
unsigned int _isbonito = 0; unsigned int _isbonito;
const char *get_system_type(void) const char *get_system_type(void)
{ {
......
...@@ -475,7 +475,7 @@ static void __cpuinit probe_tlb(unsigned long config) ...@@ -475,7 +475,7 @@ static void __cpuinit probe_tlb(unsigned long config)
c->tlbsize = ((reg >> 25) & 0x3f) + 1; c->tlbsize = ((reg >> 25) & 0x3f) + 1;
} }
static int __cpuinitdata ntlb = 0; static int __cpuinitdata ntlb;
static int __init set_ntlb(char *str) static int __init set_ntlb(char *str)
{ {
get_option(&str, &ntlb); get_option(&str, &ntlb);
......
...@@ -47,7 +47,7 @@ int *_prom_argv, *_prom_envp; ...@@ -47,7 +47,7 @@ int *_prom_argv, *_prom_envp;
*/ */
#define prom_envp(index) ((char *)(long)_prom_envp[(index)]) #define prom_envp(index) ((char *)(long)_prom_envp[(index)])
int init_debug = 0; int init_debug;
static int mips_revision_corid; static int mips_revision_corid;
int mips_revision_sconid; int mips_revision_sconid;
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
#define PNX8335_DEBUG7 0x441c #define PNX8335_DEBUG7 0x441c
int prom_argc; int prom_argc;
char **prom_argv = 0, **prom_envp = 0; char **prom_argv, **prom_envp;
extern void prom_init_cmdline(void); extern void prom_init_cmdline(void);
extern char *prom_getenv(char *envname); extern char *prom_getenv(char *envname);
......
...@@ -69,9 +69,9 @@ static int pnx8550_registers_read(char* page, char** start, off_t offset, int co ...@@ -69,9 +69,9 @@ static int pnx8550_registers_read(char* page, char** start, off_t offset, int co
return len; return len;
} }
static struct proc_dir_entry* pnx8550_dir = NULL; static struct proc_dir_entry* pnx8550_dir;
static struct proc_dir_entry* pnx8550_timers = NULL; static struct proc_dir_entry* pnx8550_timers;
static struct proc_dir_entry* pnx8550_registers = NULL; static struct proc_dir_entry* pnx8550_registers;
static int pnx8550_proc_init( void ) static int pnx8550_proc_init( void )
{ {
......
...@@ -57,7 +57,7 @@ static void *cfg_space; ...@@ -57,7 +57,7 @@ static void *cfg_space;
#define PCI_BUS_ENABLED 1 #define PCI_BUS_ENABLED 1
#define PCI_DEVICE_MODE 2 #define PCI_DEVICE_MODE 2
static int bcm1480_bus_status = 0; static int bcm1480_bus_status;
#define PCI_BRIDGE_DEVICE 0 #define PCI_BRIDGE_DEVICE 0
......
...@@ -56,7 +56,7 @@ static void *ht_cfg_space; ...@@ -56,7 +56,7 @@ static void *ht_cfg_space;
#define PCI_BUS_ENABLED 1 #define PCI_BUS_ENABLED 1
#define PCI_DEVICE_MODE 2 #define PCI_DEVICE_MODE 2
static int bcm1480ht_bus_status = 0; static int bcm1480ht_bus_status;
#define PCI_BRIDGE_DEVICE 0 #define PCI_BRIDGE_DEVICE 0
#define HT_BRIDGE_DEVICE 1 #define HT_BRIDGE_DEVICE 1
......
...@@ -58,7 +58,7 @@ static void *cfg_space; ...@@ -58,7 +58,7 @@ static void *cfg_space;
#define LDT_BUS_ENABLED 2 #define LDT_BUS_ENABLED 2
#define PCI_DEVICE_MODE 4 #define PCI_DEVICE_MODE 4
static int sb1250_bus_status = 0; static int sb1250_bus_status;
#define PCI_BRIDGE_DEVICE 0 #define PCI_BRIDGE_DEVICE 0
#define LDT_BRIDGE_DEVICE 1 #define LDT_BRIDGE_DEVICE 1
......
...@@ -31,8 +31,8 @@ unsigned int pci_probe = PCI_ASSIGN_ALL_BUSSES; ...@@ -31,8 +31,8 @@ unsigned int pci_probe = PCI_ASSIGN_ALL_BUSSES;
static struct pci_controller *hose_head, **hose_tail = &hose_head; static struct pci_controller *hose_head, **hose_tail = &hose_head;
unsigned long PCIBIOS_MIN_IO = 0x0000; unsigned long PCIBIOS_MIN_IO;
unsigned long PCIBIOS_MIN_MEM = 0; unsigned long PCIBIOS_MIN_MEM;
static int pci_initialized; static int pci_initialized;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment