Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: Remove useless zero initializations.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

+38 -38
+2 -2
arch/mips/boot/elf2ecoff.c
··· 59 59 }; 60 60 61 61 int *symTypeTable; 62 - int must_convert_endian = 0; 63 - int format_bigendian = 0; 62 + int must_convert_endian; 63 + int format_bigendian; 64 64 65 65 static void copy(int out, int in, off_t offset, off_t size) 66 66 {
+1 -1
arch/mips/dec/prom/memory.c
··· 18 18 #include <asm/sections.h> 19 19 20 20 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 */ 22 22 23 23 /* 24 24 * Probe memory in 4MB chunks, waiting for an error to tell us we've fallen
+1 -1
arch/mips/emma/markeins/setup.c
··· 32 32 33 33 extern void markeins_led(const char *); 34 34 35 - static int bus_frequency = 0; 35 + static int bus_frequency; 36 36 37 37 static void markeins_machine_restart(char *command) 38 38 {
+2 -2
arch/mips/fw/cfe/cfe_api.c
··· 45 45 * passed in two registers each, and CFE expects one. 46 46 */ 47 47 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; 50 50 51 51 int cfe_init(u64 handle, u64 ept) 52 52 {
+1 -1
arch/mips/kernel/cpu-bugs64.c
··· 167 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 172 asmlinkage void __init do_daddi_ov(struct pt_regs *regs) 173 173 {
+2 -2
arch/mips/kernel/cpu-probe.c
··· 31 31 * The wait instruction stops the pipeline and reduces the power consumption of 32 32 * the CPU very much. 33 33 */ 34 - void (*cpu_wait)(void) = NULL; 34 + void (*cpu_wait)(void); 35 35 36 36 static void r3081_wait(void) 37 37 { ··· 112 112 : : "r" (au1k_wait)); 113 113 } 114 114 115 - static int __initdata nowait = 0; 115 + static int __initdata nowait; 116 116 117 117 static int __init wait_disable(char *s) 118 118 {
+3 -3
arch/mips/kernel/kspd.c
··· 31 31 #include <asm/rtlx.h> 32 32 #include <asm/kspd.h> 33 33 34 - static struct workqueue_struct *workqueue = NULL; 34 + static struct workqueue_struct *workqueue; 35 35 static struct work_struct work; 36 36 37 37 extern unsigned long cpu_khz; ··· 58 58 }; 59 59 60 60 static struct list_head kspd_notifylist; 61 - static int sp_stopping = 0; 61 + static int sp_stopping; 62 62 63 63 /* these should match with those in the SDE kit */ 64 64 #define MTSP_SYSCALL_BASE 0 ··· 328 328 sys_chdir("/"); 329 329 } 330 330 331 - static int channel_open = 0; 331 + static int channel_open; 332 332 333 333 /* the work handler */ 334 334 static void sp_work(struct work_struct *unused)
+1 -1
arch/mips/kernel/mips-mt-fpaff.c
··· 18 18 cpumask_t mt_fpu_cpumask; 19 19 20 20 static int fpaff_threshold = -1; 21 - unsigned long mt_fpemul_threshold = 0; 21 + unsigned long mt_fpemul_threshold; 22 22 23 23 /* 24 24 * Replacement functions for the sys_sched_setaffinity() and
+5 -5
arch/mips/kernel/mips-mt.c
··· 125 125 local_irq_restore(flags); 126 126 } 127 127 128 - static int mt_opt_norps = 0; 128 + static int mt_opt_norps; 129 129 static int mt_opt_rpsctl = -1; 130 130 static int mt_opt_nblsu = -1; 131 - static int mt_opt_forceconfig7 = 0; 131 + static int mt_opt_forceconfig7; 132 132 static int mt_opt_config7 = -1; 133 133 134 134 static int __init rps_disable(char *s) ··· 161 161 __setup("config7=", config7_set); 162 162 163 163 /* 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; 166 166 int mt_n_iflushes = 1; 167 167 int mt_n_dflushes = 1; 168 168 ··· 194 194 } 195 195 __setup("ndflush=", ndflush); 196 196 197 - static unsigned int itc_base = 0; 197 + static unsigned int itc_base; 198 198 199 199 static int __init set_itc_base(char *str) 200 200 {
+1 -1
arch/mips/kernel/rtlx.c
··· 57 57 } channel_wqs[RTLX_CHANNELS]; 58 58 59 59 static struct vpe_notifications notify; 60 - static int sp_stopping = 0; 60 + static int sp_stopping; 61 61 62 62 extern void *vpe_get_shared(int index); 63 63
+1 -1
arch/mips/kernel/setup.c
··· 441 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 446 static int __init early_parse_mem(char *p) 447 447 {
+5 -5
arch/mips/kernel/smtc.c
··· 95 95 96 96 /* Global SMTC Status */ 97 97 98 - unsigned int smtc_status = 0; 98 + unsigned int smtc_status; 99 99 100 100 /* Boot command line configuration overrides */ 101 101 102 102 static int vpe0limit; 103 - static int ipibuffers = 0; 104 - static int nostlb = 0; 105 - static int asidmask = 0; 103 + static int ipibuffers; 104 + static int nostlb; 105 + static int asidmask; 106 106 unsigned long smtc_asid_mask = 0xff; 107 107 108 108 static int __init vpe0tcs(char *str) ··· 151 151 152 152 #ifdef CONFIG_SMTC_IDLE_HOOK_DEBUG 153 153 154 - static int hang_trig = 0; 154 + static int hang_trig; 155 155 156 156 static int __init hangtrig_enable(char *s) 157 157 {
+1 -1
arch/mips/kernel/vpe.c
··· 74 74 75 75 #ifdef CONFIG_MIPS_APSP_KSPD 76 76 static struct kspd_notifications kspd_events; 77 - static int kspd_events_reqd = 0; 77 + static int kspd_events_reqd; 78 78 #endif 79 79 80 80 /* grab the likely amount of memory we will need. */
+1 -1
arch/mips/mipssim/sim_setup.c
··· 37 37 38 38 39 39 static void __init serial_init(void); 40 - unsigned int _isbonito = 0; 40 + unsigned int _isbonito; 41 41 42 42 const char *get_system_type(void) 43 43 {
+1 -1
arch/mips/mm/tlb-r4k.c
··· 475 475 c->tlbsize = ((reg >> 25) & 0x3f) + 1; 476 476 } 477 477 478 - static int __cpuinitdata ntlb = 0; 478 + static int __cpuinitdata ntlb; 479 479 static int __init set_ntlb(char *str) 480 480 { 481 481 get_option(&str, &ntlb);
+1 -1
arch/mips/mti-malta/malta-init.c
··· 47 47 */ 48 48 #define prom_envp(index) ((char *)(long)_prom_envp[(index)]) 49 49 50 - int init_debug = 0; 50 + int init_debug; 51 51 52 52 static int mips_revision_corid; 53 53 int mips_revision_sconid;
+1 -1
arch/mips/nxp/pnx833x/stb22x/board.c
··· 39 39 #define PNX8335_DEBUG7 0x441c 40 40 41 41 int prom_argc; 42 - char **prom_argv = 0, **prom_envp = 0; 42 + char **prom_argv, **prom_envp; 43 43 44 44 extern void prom_init_cmdline(void); 45 45 extern char *prom_getenv(char *envname);
+3 -3
arch/mips/nxp/pnx8550/common/proc.c
··· 69 69 return len; 70 70 } 71 71 72 - static struct proc_dir_entry* pnx8550_dir = NULL; 73 - static struct proc_dir_entry* pnx8550_timers = NULL; 74 - static struct proc_dir_entry* pnx8550_registers = NULL; 72 + static struct proc_dir_entry* pnx8550_dir; 73 + static struct proc_dir_entry* pnx8550_timers; 74 + static struct proc_dir_entry* pnx8550_registers; 75 75 76 76 static int pnx8550_proc_init( void ) 77 77 {
+1 -1
arch/mips/pci/pci-bcm1480.c
··· 57 57 #define PCI_BUS_ENABLED 1 58 58 #define PCI_DEVICE_MODE 2 59 59 60 - static int bcm1480_bus_status = 0; 60 + static int bcm1480_bus_status; 61 61 62 62 #define PCI_BRIDGE_DEVICE 0 63 63
+1 -1
arch/mips/pci/pci-bcm1480ht.c
··· 56 56 #define PCI_BUS_ENABLED 1 57 57 #define PCI_DEVICE_MODE 2 58 58 59 - static int bcm1480ht_bus_status = 0; 59 + static int bcm1480ht_bus_status; 60 60 61 61 #define PCI_BRIDGE_DEVICE 0 62 62 #define HT_BRIDGE_DEVICE 1
+1 -1
arch/mips/pci/pci-sb1250.c
··· 58 58 #define LDT_BUS_ENABLED 2 59 59 #define PCI_DEVICE_MODE 4 60 60 61 - static int sb1250_bus_status = 0; 61 + static int sb1250_bus_status; 62 62 63 63 #define PCI_BRIDGE_DEVICE 0 64 64 #define LDT_BRIDGE_DEVICE 1
+2 -2
arch/mips/pci/pci.c
··· 31 31 32 32 static struct pci_controller *hose_head, **hose_tail = &hose_head; 33 33 34 - unsigned long PCIBIOS_MIN_IO = 0x0000; 35 - unsigned long PCIBIOS_MIN_MEM = 0; 34 + unsigned long PCIBIOS_MIN_IO; 35 + unsigned long PCIBIOS_MIN_MEM; 36 36 37 37 static int pci_initialized; 38 38