Skip to content

Commit

Permalink
MIPS: Remove useless zero initializations.
Browse files Browse the repository at this point in the history
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Ralf Baechle committed Sep 17, 2009
1 parent 2882b0c commit 982f6ff
Show file tree
Hide file tree
Showing 22 changed files with 38 additions and 38 deletions.
4 changes: 2 additions & 2 deletions arch/mips/boot/elf2ecoff.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion arch/mips/dec/prom/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion arch/mips/emma/markeins/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
4 changes: 2 additions & 2 deletions arch/mips/fw/cfe/cfe_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion arch/mips/kernel/cpu-bugs64.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
4 changes: 2 additions & 2 deletions arch/mips/kernel/cpu-probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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)
{
Expand Down
6 changes: 3 additions & 3 deletions arch/mips/kernel/kspd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion arch/mips/kernel/mips-mt-fpaff.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions arch/mips/kernel/mips-mt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion arch/mips/kernel/rtlx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion arch/mips/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
10 changes: 5 additions & 5 deletions arch/mips/kernel/smtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion arch/mips/kernel/vpe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down
2 changes: 1 addition & 1 deletion arch/mips/mipssim/sim_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@


static void __init serial_init(void);
unsigned int _isbonito = 0;
unsigned int _isbonito;

const char *get_system_type(void)
{
Expand Down
2 changes: 1 addition & 1 deletion arch/mips/mm/tlb-r4k.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion arch/mips/mti-malta/malta-init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion arch/mips/nxp/pnx833x/stb22x/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
6 changes: 3 additions & 3 deletions arch/mips/nxp/pnx8550/common/proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
{
Expand Down
2 changes: 1 addition & 1 deletion arch/mips/pci/pci-bcm1480.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion arch/mips/pci/pci-bcm1480ht.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion arch/mips/pci/pci-sb1250.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions arch/mips/pci/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 982f6ff

Please sign in to comment.