MIPS: Remove useless zero initializations.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
Ralf Baechle 2009-09-17 02:25:07 +02:00
parent 2882b0c63a
commit 982f6ffeee
22 changed files with 38 additions and 38 deletions

View file

@ -59,8 +59,8 @@ struct sect {
};
int *symTypeTable;
int must_convert_endian = 0;
int format_bigendian = 0;
int must_convert_endian;
int format_bigendian;
static void copy(int out, int in, off_t offset, off_t size)
{

View file

@ -18,7 +18,7 @@
#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

View file

@ -32,7 +32,7 @@
extern void markeins_led(const char *);
static int bus_frequency = 0;
static int bus_frequency;
static void markeins_machine_restart(char *command)
{

View file

@ -45,8 +45,8 @@ int cfe_iocb_dispatch(struct cfe_xiocb *xiocb);
* passed in two registers each, and CFE expects one.
*/
static int (*cfe_dispfunc) (intptr_t handle, intptr_t xiocb) = 0;
static u64 cfe_handle = 0;
static int (*cfe_dispfunc) (intptr_t handle, intptr_t xiocb);
static u64 cfe_handle;
int cfe_init(u64 handle, u64 ept)
{

View file

@ -167,7 +167,7 @@ static inline void check_mult_sh(void)
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)
{

View file

@ -31,7 +31,7 @@
* The wait instruction stops the pipeline and reduces the power consumption of
* the CPU very much.
*/
void (*cpu_wait)(void) = NULL;
void (*cpu_wait)(void);
static void r3081_wait(void)
{
@ -112,7 +112,7 @@ static void au1k_wait(void)
: : "r" (au1k_wait));
}
static int __initdata nowait = 0;
static int __initdata nowait;
static int __init wait_disable(char *s)
{

View file

@ -31,7 +31,7 @@
#include <asm/rtlx.h>
#include <asm/kspd.h>
static struct workqueue_struct *workqueue = NULL;
static struct workqueue_struct *workqueue;
static struct work_struct work;
extern unsigned long cpu_khz;
@ -58,7 +58,7 @@ struct mtsp_syscall_generic {
};
static struct list_head kspd_notifylist;
static int sp_stopping = 0;
static int sp_stopping;
/* these should match with those in the SDE kit */
#define MTSP_SYSCALL_BASE 0
@ -328,7 +328,7 @@ static void sp_cleanup(void)
sys_chdir("/");
}
static int channel_open = 0;
static int channel_open;
/* the work handler */
static void sp_work(struct work_struct *unused)

View file

@ -18,7 +18,7 @@
cpumask_t mt_fpu_cpumask;
static int fpaff_threshold = -1;
unsigned long mt_fpemul_threshold = 0;
unsigned long mt_fpemul_threshold;
/*
* Replacement functions for the sys_sched_setaffinity() and

View file

@ -125,10 +125,10 @@ void mips_mt_regdump(unsigned long mvpctl)
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_nblsu = -1;
static int mt_opt_forceconfig7 = 0;
static int mt_opt_forceconfig7;
static int mt_opt_config7 = -1;
static int __init rps_disable(char *s)
@ -161,8 +161,8 @@ static int __init config7_set(char *str)
__setup("config7=", config7_set);
/* Experimental cache flush control parameters that should go away some day */
int mt_protiflush = 0;
int mt_protdflush = 0;
int mt_protiflush;
int mt_protdflush;
int mt_n_iflushes = 1;
int mt_n_dflushes = 1;
@ -194,7 +194,7 @@ static int __init ndflush(char *s)
}
__setup("ndflush=", ndflush);
static unsigned int itc_base = 0;
static unsigned int itc_base;
static int __init set_itc_base(char *str)
{

View file

@ -57,7 +57,7 @@ static struct chan_waitqueues {
} channel_wqs[RTLX_CHANNELS];
static struct vpe_notifications notify;
static int sp_stopping = 0;
static int sp_stopping;
extern void *vpe_get_shared(int index);

View file

@ -441,7 +441,7 @@ static void __init bootmem_init(void)
* initialization hook for anything else was introduced.
*/
static int usermem __initdata = 0;
static int usermem __initdata;
static int __init early_parse_mem(char *p)
{

View file

@ -95,14 +95,14 @@ void init_smtc_stats(void);
/* Global SMTC Status */
unsigned int smtc_status = 0;
unsigned int smtc_status;
/* Boot command line configuration overrides */
static int vpe0limit;
static int ipibuffers = 0;
static int nostlb = 0;
static int asidmask = 0;
static int ipibuffers;
static int nostlb;
static int asidmask;
unsigned long smtc_asid_mask = 0xff;
static int __init vpe0tcs(char *str)
@ -151,7 +151,7 @@ __setup("asidmask=", asidmask_set);
#ifdef CONFIG_SMTC_IDLE_HOOK_DEBUG
static int hang_trig = 0;
static int hang_trig;
static int __init hangtrig_enable(char *s)
{

View file

@ -74,7 +74,7 @@ static const int minor = 1; /* fixed for now */
#ifdef CONFIG_MIPS_APSP_KSPD
static struct kspd_notifications kspd_events;
static int kspd_events_reqd = 0;
static int kspd_events_reqd;
#endif
/* grab the likely amount of memory we will need. */

View file

@ -37,7 +37,7 @@
static void __init serial_init(void);
unsigned int _isbonito = 0;
unsigned int _isbonito;
const char *get_system_type(void)
{

View file

@ -475,7 +475,7 @@ static void __cpuinit probe_tlb(unsigned long config)
c->tlbsize = ((reg >> 25) & 0x3f) + 1;
}
static int __cpuinitdata ntlb = 0;
static int __cpuinitdata ntlb;
static int __init set_ntlb(char *str)
{
get_option(&str, &ntlb);

View file

@ -47,7 +47,7 @@ int *_prom_argv, *_prom_envp;
*/
#define prom_envp(index) ((char *)(long)_prom_envp[(index)])
int init_debug = 0;
int init_debug;
static int mips_revision_corid;
int mips_revision_sconid;

View file

@ -39,7 +39,7 @@
#define PNX8335_DEBUG7 0x441c
int prom_argc;
char **prom_argv = 0, **prom_envp = 0;
char **prom_argv, **prom_envp;
extern void prom_init_cmdline(void);
extern char *prom_getenv(char *envname);

View file

@ -69,9 +69,9 @@ static int pnx8550_registers_read(char* page, char** start, off_t offset, int co
return len;
}
static struct proc_dir_entry* pnx8550_dir = NULL;
static struct proc_dir_entry* pnx8550_timers = NULL;
static struct proc_dir_entry* pnx8550_registers = NULL;
static struct proc_dir_entry* pnx8550_dir;
static struct proc_dir_entry* pnx8550_timers;
static struct proc_dir_entry* pnx8550_registers;
static int pnx8550_proc_init( void )
{

View file

@ -57,7 +57,7 @@ static void *cfg_space;
#define PCI_BUS_ENABLED 1
#define PCI_DEVICE_MODE 2
static int bcm1480_bus_status = 0;
static int bcm1480_bus_status;
#define PCI_BRIDGE_DEVICE 0

View file

@ -56,7 +56,7 @@ static void *ht_cfg_space;
#define PCI_BUS_ENABLED 1
#define PCI_DEVICE_MODE 2
static int bcm1480ht_bus_status = 0;
static int bcm1480ht_bus_status;
#define PCI_BRIDGE_DEVICE 0
#define HT_BRIDGE_DEVICE 1

View file

@ -58,7 +58,7 @@ static void *cfg_space;
#define LDT_BUS_ENABLED 2
#define PCI_DEVICE_MODE 4
static int sb1250_bus_status = 0;
static int sb1250_bus_status;
#define PCI_BRIDGE_DEVICE 0
#define LDT_BRIDGE_DEVICE 1

View file

@ -31,8 +31,8 @@ unsigned int pci_probe = PCI_ASSIGN_ALL_BUSSES;
static struct pci_controller *hose_head, **hose_tail = &hose_head;
unsigned long PCIBIOS_MIN_IO = 0x0000;
unsigned long PCIBIOS_MIN_MEM = 0;
unsigned long PCIBIOS_MIN_IO;
unsigned long PCIBIOS_MIN_MEM;
static int pci_initialized;