diff -urN -X dontdiff linux/arch/i386/kernel/bluesmoke.c bss/arch/i386/kernel/bluesmoke.c --- linux/arch/i386/kernel/bluesmoke.c Tue Sep 19 16:31:53 2000 +++ bss/arch/i386/kernel/bluesmoke.c Thu Oct 5 21:50:34 2000 @@ -8,7 +8,7 @@ #include #include -static int banks = 0; +static int banks; void mcheck_fault(void) { @@ -71,7 +71,7 @@ u32 l, h; int i; struct cpuinfo_x86 *c; - static int done=0; + static int done; c=cpu_data+smp_processor_id(); diff -urN -X dontdiff linux/arch/i386/kernel/i8259.c bss/arch/i386/kernel/i8259.c --- linux/arch/i386/kernel/i8259.c Fri Aug 4 01:15:40 2000 +++ bss/arch/i386/kernel/i8259.c Thu Oct 5 21:45:20 2000 @@ -178,7 +178,7 @@ * this 'mixed mode' IRQ handling costs nothing because it's only used * at IRQ setup time. */ -unsigned long io_apic_irqs = 0; +unsigned long io_apic_irqs; void disable_8259A_irq(unsigned int irq) { @@ -312,7 +312,7 @@ goto handle_real_irq; { - static int spurious_irq_mask = 0; + static int spurious_irq_mask; /* * At this point we can be sure the IRQ is spurious, * lets ACK and report it. [once per IRQ] diff -urN -X dontdiff linux/arch/i386/kernel/mtrr.c bss/arch/i386/kernel/mtrr.c --- linux/arch/i386/kernel/mtrr.c Mon Oct 2 04:35:15 2000 +++ bss/arch/i386/kernel/mtrr.c Thu Oct 5 21:43:44 2000 @@ -1581,7 +1581,7 @@ # endif /* CONFIG_PROC_FS */ -static devfs_handle_t devfs_handle = NULL; +static devfs_handle_t devfs_handle; static void compute_ascii (void) { diff -urN -X dontdiff linux/arch/i386/kernel/smp.c bss/arch/i386/kernel/smp.c --- linux/arch/i386/kernel/smp.c Mon Oct 2 03:55:17 2000 +++ bss/arch/i386/kernel/smp.c Thu Oct 5 21:51:26 2000 @@ -422,7 +422,7 @@ int wait; }; -static struct call_data_struct * call_data = NULL; +static struct call_data_struct * call_data; /* * this function sends a 'generic call function' IPI to all other CPUs diff -urN -X dontdiff linux/arch/i386/kernel/time.c bss/arch/i386/kernel/time.c --- linux/arch/i386/kernel/time.c Mon Sep 18 23:43:16 2000 +++ bss/arch/i386/kernel/time.c Thu Oct 5 21:49:45 2000 @@ -76,7 +76,7 @@ * Equal to 2^32 * (1 / (clocks per usec) ). * Initialized in time_init. */ -unsigned long fast_gettimeoffset_quotient=0; +unsigned long fast_gettimeoffset_quotient; extern rwlock_t xtime_lock; extern unsigned long wall_jiffies; @@ -373,9 +373,9 @@ } /* last time the cmos clock got updated */ -static long last_rtc_update = 0; +static long last_rtc_update; -int timer_ack = 0; +int timer_ack; /* * timer_interrupt() needs to keep up the real-time clock, @@ -449,7 +449,7 @@ #endif } -static int use_tsc = 0; +static int use_tsc; /* * This is the same as the above, except we _also_ save the current diff -urN -X dontdiff linux/arch/i386/mm/init.c bss/arch/i386/mm/init.c --- linux/arch/i386/mm/init.c Tue Aug 8 05:02:27 2000 +++ bss/arch/i386/mm/init.c Thu Oct 5 21:57:32 2000 @@ -37,8 +37,8 @@ #include unsigned long highstart_pfn, highend_pfn; -static unsigned long totalram_pages = 0; -static unsigned long totalhigh_pages = 0; +static unsigned long totalram_pages; +static unsigned long totalhigh_pages; /* * BAD_PAGE is the page that is used for page faults when linux diff -urN -X dontdiff linux/arch/m68k/mm/init.c bss/arch/m68k/mm/init.c --- linux/arch/m68k/mm/init.c Tue Aug 8 05:02:27 2000 +++ bss/arch/m68k/mm/init.c Thu Oct 5 21:57:50 2000 @@ -32,7 +32,7 @@ #include #endif -static unsigned long totalram_pages = 0; +static unsigned long totalram_pages; #ifdef CONFIG_SUN3 void mmu_emu_reserve_pages(unsigned long max_page); diff -urN -X dontdiff linux/arch/mips/dec/time.c bss/arch/mips/dec/time.c --- linux/arch/mips/dec/time.c Mon Sep 11 16:39:48 2000 +++ bss/arch/mips/dec/time.c Thu Oct 5 21:46:35 2000 @@ -39,7 +39,7 @@ /* Cycle counter value at the previous timer interrupt.. */ -static unsigned int timerhi = 0, timerlo = 0; +static unsigned int timerhi, timerlo; /* * On MIPS only R4000 and better have a cycle counter. @@ -269,7 +269,7 @@ } /* last time the cmos clock got updated */ -static long last_rtc_update = 0; +static long last_rtc_update; /* * timer_interrupt() needs to keep up the real-time clock, diff -urN -X dontdiff linux/arch/mips/kernel/time.c bss/arch/mips/kernel/time.c --- linux/arch/mips/kernel/time.c Mon Sep 11 16:39:48 2000 +++ bss/arch/mips/kernel/time.c Thu Oct 5 21:47:37 2000 @@ -26,7 +26,7 @@ #include extern volatile unsigned long wall_jiffies; -unsigned long r4k_interval = 0; +unsigned long r4k_interval; extern rwlock_t xtime_lock; /* @@ -40,7 +40,7 @@ /* Cycle counter value at the previous timer interrupt.. */ -static unsigned int timerhi = 0, timerlo = 0; +static unsigned int timerhi, timerlo; /* * On MIPS only R4000 and better have a cycle counter. @@ -53,14 +53,14 @@ unsigned long res, tmp; /* Last jiffy when do_fast_gettimeoffset() was called. */ - static unsigned long last_jiffies=0; + static unsigned long last_jiffies; unsigned long quotient; /* * Cached "1/(clocks per usec)*2^32" value. * It has to be recalculated once each jiffy. */ - static unsigned long cached_quotient=0; + static unsigned long cached_quotient; tmp = jiffies; @@ -154,7 +154,7 @@ int count; static int count_p = LATCH; /* for the first call after boot */ - static unsigned long jiffies_p = 0; + static unsigned long jiffies_p; /* * cache volatile jiffies temporarily; we have IRQs turned off. @@ -330,7 +330,7 @@ } /* last time the cmos clock got updated */ -static long last_rtc_update = 0; +static long last_rtc_update; /* * timer_interrupt() needs to keep up the real-time clock, @@ -340,7 +340,7 @@ timer_interrupt(int irq, void *dev_id, struct pt_regs * regs) { #ifdef CONFIG_DDB5074 - static unsigned cnt = 0, period = 0, dist = 0; + static unsigned cnt, period, dist; if (cnt == 0 || cnt == dist) ddb5074_led_d2(1); diff -urN -X dontdiff linux/arch/mips/mm/init.c bss/arch/mips/mm/init.c --- linux/arch/mips/mm/init.c Tue Aug 8 05:02:27 2000 +++ bss/arch/mips/mm/init.c Thu Oct 5 21:57:58 2000 @@ -39,7 +39,7 @@ #endif #include -static unsigned long totalram_pages = 0; +static unsigned long totalram_pages; extern void prom_fixup_mem_map(unsigned long start, unsigned long end); extern void prom_free_prom_memory(void); diff -urN -X dontdiff linux/arch/mips/sgi/kernel/indy_timer.c bss/arch/mips/sgi/kernel/indy_timer.c --- linux/arch/mips/sgi/kernel/indy_timer.c Mon Sep 11 16:39:48 2000 +++ bss/arch/mips/sgi/kernel/indy_timer.c Thu Oct 5 23:40:22 2000 @@ -79,8 +79,8 @@ return retval; } -static long last_rtc_update = 0; -unsigned long missed_heart_beats = 0; +static long last_rtc_update; +unsigned long missed_heart_beats; void indy_timer_interrupt(struct pt_regs *regs) { diff -urN -X dontdiff linux/arch/mips64/kernel/smp.c bss/arch/mips64/kernel/smp.c --- linux/arch/mips64/kernel/smp.c Fri Jul 28 02:36:54 2000 +++ bss/arch/mips64/kernel/smp.c Thu Oct 5 21:51:51 2000 @@ -54,7 +54,7 @@ /* The 'big kernel lock' */ spinlock_t kernel_flag = SPIN_LOCK_UNLOCKED; -int smp_threads_ready = 0; /* Not used */ +int smp_threads_ready; /* Not used */ atomic_t smp_commenced = ATOMIC_INIT(0); struct cpuinfo_mips cpu_data[NR_CPUS]; int smp_num_cpus; /* Number that came online. */ @@ -130,7 +130,7 @@ atomic_t started; atomic_t finished; int wait; -} *call_data = NULL; +} *call_data; int smp_call_function (void (*func) (void *info), void *info, int retry, int wait) diff -urN -X dontdiff linux/arch/mips64/mm/init.c bss/arch/mips64/mm/init.c --- linux/arch/mips64/mm/init.c Tue Aug 8 05:02:27 2000 +++ bss/arch/mips64/mm/init.c Thu Oct 5 21:54:50 2000 @@ -38,7 +38,7 @@ #endif #include -unsigned long totalram_pages = 0; +unsigned long totalram_pages; void __bad_pte_kernel(pmd_t *pmd) { diff -urN -X dontdiff linux/arch/mips64/sgi-ip22/ip22-timer.c bss/arch/mips64/sgi-ip22/ip22-timer.c --- linux/arch/mips64/sgi-ip22/ip22-timer.c Mon Sep 11 16:39:48 2000 +++ bss/arch/mips64/sgi-ip22/ip22-timer.c Thu Oct 5 23:41:31 2000 @@ -79,8 +79,8 @@ return retval; } -static long last_rtc_update = 0; -unsigned long missed_heart_beats = 0; +static long last_rtc_update; +unsigned long missed_heart_beats; void indy_timer_interrupt(struct pt_regs *regs) { diff -urN -X dontdiff linux/arch/mips64/sgi-ip27/ip27-rtc.c bss/arch/mips64/sgi-ip27/ip27-rtc.c --- linux/arch/mips64/sgi-ip27/ip27-rtc.c Thu Jul 13 05:58:42 2000 +++ bss/arch/mips64/sgi-ip27/ip27-rtc.c Thu Oct 5 23:12:51 2000 @@ -60,8 +60,8 @@ #define RTC_IS_OPEN 0x01 /* means /dev/rtc is in use */ #define RTC_TIMER_ON 0x02 /* missed irq timer active */ -static unsigned char rtc_status = 0; /* bitmapped status byte. */ -static unsigned long rtc_freq = 0; /* Current periodic IRQ rate */ +static unsigned char rtc_status; /* bitmapped status byte. */ +static unsigned long rtc_freq; /* Current periodic IRQ rate */ static struct m48t35_rtc *rtc; /* diff -urN -X dontdiff linux/arch/mips64/sgi-ip27/ip27-timer.c bss/arch/mips64/sgi-ip27/ip27-timer.c --- linux/arch/mips64/sgi-ip27/ip27-timer.c Mon Sep 11 16:39:48 2000 +++ bss/arch/mips64/sgi-ip27/ip27-timer.c Thu Oct 5 21:48:38 2000 @@ -36,7 +36,7 @@ #define CYCLES_PER_JIFFY (CYCLES_PER_SEC/HZ) static unsigned long ct_cur[NR_CPUS]; /* What counter should be at next timer irq */ -static long last_rtc_update = 0; /* Last time the rtc clock got updated */ +static long last_rtc_update; /* Last time the rtc clock got updated */ extern rwlock_t xtime_lock; extern volatile unsigned long wall_jiffies; diff -urN -X dontdiff linux/arch/ppc/kernel/smp.c bss/arch/ppc/kernel/smp.c --- linux/arch/ppc/kernel/smp.c Sun Sep 17 17:48:07 2000 +++ bss/arch/ppc/kernel/smp.c Thu Oct 5 21:52:26 2000 @@ -41,8 +41,8 @@ #include #include "open_pic.h" -int smp_threads_ready = 0; -volatile int smp_commenced = 0; +int smp_threads_ready; +volatile int smp_commenced; int smp_num_cpus = 1; struct cpuinfo_PPC cpu_data[NR_CPUS]; struct klock_info_struct klock_info = { KLOCK_CLEAR, 0 }; @@ -54,10 +54,10 @@ cycles_t cacheflush_time; /* this has to go in the data section because it is accessed from prom_init */ -int smp_hw_index[NR_CPUS] = {0}; +int smp_hw_index[NR_CPUS]; /* all cpu mappings are 1-1 -- Cort */ -volatile unsigned long cpu_callin_map[NR_CPUS] = {0,}; +volatile unsigned long cpu_callin_map[NR_CPUS]; int start_secondary(void *); extern int cpu_idle(void *unused); @@ -226,7 +226,7 @@ atomic_t started; atomic_t finished; int wait; -} *call_data = NULL; +} *call_data; /* * this function sends a 'generic call function' IPI to all other CPUs diff -urN -X dontdiff linux/arch/ppc/mm/init.c bss/arch/ppc/mm/init.c --- linux/arch/ppc/mm/init.c Sun Sep 17 17:48:07 2000 +++ bss/arch/ppc/mm/init.c Thu Oct 5 21:56:12 2000 @@ -82,8 +82,8 @@ int mem_init_done; int init_bootmem_done; int boot_mapsize; -unsigned long totalram_pages = 0; -unsigned long totalhigh_pages = 0; +unsigned long totalram_pages; +unsigned long totalhigh_pages; extern pgd_t swapper_pg_dir[]; extern char _start[], _end[]; extern char etext[], _stext[]; @@ -138,10 +138,10 @@ char *klimit = _end; struct mem_pieces phys_avail; -PTE *Hash=0, *Hash_end; -unsigned long Hash_size=0, Hash_mask; +PTE *Hash, *Hash_end; +unsigned long Hash_size, Hash_mask; #if !defined(CONFIG_4xx) && !defined(CONFIG_8xx) -unsigned long _SDR1=0; +unsigned long _SDR1; static void hash_init(void); union ubat { /* BAT register values to be loaded */ @@ -195,7 +195,7 @@ * (i.e. page tables) instead of the bats. * -- Cort */ -int __map_without_bats = 0; +int __map_without_bats; /* max amount of RAM to use */ unsigned long __max_memory; diff -urN -X dontdiff linux/arch/s390/mm/init.c bss/arch/s390/mm/init.c --- linux/arch/s390/mm/init.c Tue Aug 8 05:02:27 2000 +++ bss/arch/s390/mm/init.c Thu Oct 5 21:58:08 2000 @@ -36,7 +36,7 @@ #include #include -static unsigned long totalram_pages = 0; +static unsigned long totalram_pages; /* * BAD_PAGE is the page that is used for page faults when linux diff -urN -X dontdiff linux/arch/sh/kernel/time.c bss/arch/sh/kernel/time.c --- linux/arch/sh/kernel/time.c Mon Oct 2 19:57:34 2000 +++ bss/arch/sh/kernel/time.c Thu Oct 5 21:48:57 2000 @@ -213,7 +213,7 @@ } /* last time the RTC clock got updated */ -static long last_rtc_update = 0; +static long last_rtc_update; /* * timer_interrupt() needs to keep up the real-time clock, diff -urN -X dontdiff linux/arch/sh/mm/init.c bss/arch/sh/mm/init.c --- linux/arch/sh/mm/init.c Mon Oct 2 19:57:34 2000 +++ bss/arch/sh/mm/init.c Thu Oct 5 21:58:16 2000 @@ -40,8 +40,8 @@ */ unsigned long mmu_context_cache; -static unsigned long totalram_pages = 0; -static unsigned long totalhigh_pages = 0; +static unsigned long totalram_pages; +static unsigned long totalhigh_pages; extern unsigned long init_smp_mappings(unsigned long); diff -urN -X dontdiff linux/arch/sparc/mm/init.c bss/arch/sparc/mm/init.c --- linux/arch/sparc/mm/init.c Thu Sep 7 16:32:00 2000 +++ bss/arch/sparc/mm/init.c Thu Oct 5 21:57:03 2000 @@ -42,7 +42,7 @@ struct sparc_phys_banks sp_banks[SPARC_PHYS_BANKS]; unsigned long sparc_unmapped_base; -struct pgtable_cache_struct pgt_quicklists = { 0, 0, 0, 0 }; +struct pgtable_cache_struct pgt_quicklists; /* References to section boundaries */ extern char __init_begin, __init_end, _start, _end, etext , edata; diff -urN -X dontdiff linux/arch/sparc64/solaris/socksys.c bss/arch/sparc64/solaris/socksys.c --- linux/arch/sparc64/solaris/socksys.c Thu Jul 27 02:36:44 2000 +++ bss/arch/sparc64/solaris/socksys.c Thu Oct 5 22:32:12 2000 @@ -161,7 +161,7 @@ release: socksys_release, }; -static devfs_handle_t devfs_handle = NULL; +static devfs_handle_t devfs_handle; int __init init_socksys(void) diff -urN -X dontdiff linux/drivers/acorn/char/defkeymap-acorn.c bss/drivers/acorn/char/defkeymap-acorn.c --- linux/drivers/acorn/char/defkeymap-acorn.c Mon Sep 18 23:15:21 2000 +++ bss/drivers/acorn/char/defkeymap-acorn.c Thu Oct 5 22:55:42 2000 @@ -285,7 +285,7 @@ char *funcbufptr = func_buf; int funcbufsize = sizeof(func_buf); -int funcbufleft = 0; /* space left */ +int funcbufleft; /* space left */ char *func_table[MAX_NR_FUNC] = { func_buf + 0, diff -urN -X dontdiff linux/drivers/atm/nicstar.c bss/drivers/atm/nicstar.c --- linux/drivers/atm/nicstar.c Fri Jul 7 05:37:24 2000 +++ bss/drivers/atm/nicstar.c Thu Oct 5 22:58:41 2000 @@ -259,7 +259,7 @@ /* Global variables ***********************************************************/ static struct ns_dev *cards[NS_MAX_CARDS]; -static unsigned num_cards = 0; +static unsigned num_cards; static struct atmdev_ops atm_ops = { open: ns_open, diff -urN -X dontdiff linux/drivers/block/DAC960.c bss/drivers/block/DAC960.c --- linux/drivers/block/DAC960.c Mon Aug 21 17:23:54 2000 +++ bss/drivers/block/DAC960.c Thu Oct 5 22:43:56 2000 @@ -51,7 +51,7 @@ */ static int - DAC960_ControllerCount = 0; + DAC960_ControllerCount; /* @@ -60,7 +60,7 @@ */ static int - DAC960_ActiveControllerCount = 0; + DAC960_ActiveControllerCount; /* @@ -69,7 +69,7 @@ */ static DAC960_Controller_T - *DAC960_Controllers[DAC960_MaxControllers] = { NULL }; + *DAC960_Controllers[DAC960_MaxControllers]; /* @@ -5679,7 +5679,7 @@ } if (MessageLevel == DAC960_AnnounceLevel) { - static int AnnouncementLines = 0; + static int AnnouncementLines; if (++AnnouncementLines <= 2) printk("%sDAC960: %s", DAC960_MessageLevelMap[MessageLevel], Buffer); diff -urN -X dontdiff linux/drivers/block/acsi_slm.c bss/drivers/block/acsi_slm.c --- linux/drivers/block/acsi_slm.c Fri Jul 14 20:20:22 2000 +++ bss/drivers/block/acsi_slm.c Thu Oct 5 22:12:59 2000 @@ -942,7 +942,7 @@ int attach_slm( int target, int lun ) -{ static int did_register = 0; +{ static int did_register; int len; if (N_SLM_Printers >= MAX_SLM) { @@ -992,7 +992,7 @@ return( 1 ); } -static devfs_handle_t devfs_handle = NULL; +static devfs_handle_t devfs_handle; int slm_init( void ) diff -urN -X dontdiff linux/drivers/block/cciss.c bss/drivers/block/cciss.c --- linux/drivers/block/cciss.c Wed Sep 27 21:39:23 2000 +++ bss/drivers/block/cciss.c Thu Oct 5 22:46:53 2000 @@ -71,10 +71,10 @@ #define READ_AHEAD 128 #define NR_CMDS 128 /* #commands that can be outstanding */ #define MAX_CTLR 8 -static int nr_ctlr =0; -static ctlr_info_t *hba[MAX_CTLR] = { 0, 0, 0, 0, 0, 0, 0, 0 }; +static int nr_ctlr; +static ctlr_info_t *hba[MAX_CTLR]; -static struct proc_dir_entry *proc_cciss = NULL; +static struct proc_dir_entry *proc_cciss; static void do_cciss_request(int i); /* diff -urN -X dontdiff linux/drivers/block/cpqarray.c bss/drivers/block/cpqarray.c --- linux/drivers/block/cpqarray.c Fri Sep 22 22:17:18 2000 +++ bss/drivers/block/cpqarray.c Thu Oct 5 22:47:34 2000 @@ -68,10 +68,10 @@ #define MAX_CTLR 8 #define CTLR_SHIFT 8 -static int nr_ctlr = 0; -static ctlr_info_t *hba[MAX_CTLR] = { 0, 0, 0, 0, 0, 0, 0, 0 }; +static int nr_ctlr; +static ctlr_info_t *hba[MAX_CTLR]; -static int eisa[8] = { 0, 0 ,0 ,0, 0, 0 ,0 ,0 }; +static int eisa[8]; #define NR_PRODUCTS (sizeof(products)/sizeof(struct board_type)) @@ -103,7 +103,7 @@ static int * ida_hardsizes; static struct gendisk ida_gendisk[MAX_CTLR]; -static struct proc_dir_entry *proc_array = NULL; +static struct proc_dir_entry *proc_array; /* Debug... */ #define DBG(s) do { s } while(0) diff -urN -X dontdiff linux/drivers/block/loop.c bss/drivers/block/loop.c --- linux/drivers/block/loop.c Tue Sep 19 16:31:35 2000 +++ bss/drivers/block/loop.c Thu Oct 5 22:12:15 2000 @@ -80,7 +80,7 @@ static struct loop_device *loop_dev; static int *loop_sizes; static int *loop_blksizes; -static devfs_handle_t devfs_handle = NULL; /* For the directory */ +static devfs_handle_t devfs_handle; /* For the directory */ #define FALSE 0 #define TRUE (!FALSE) diff -urN -X dontdiff linux/drivers/block/nbd.c bss/drivers/block/nbd.c --- linux/drivers/block/nbd.c Wed Jul 5 21:15:19 2000 +++ bss/drivers/block/nbd.c Thu Oct 5 22:11:22 2000 @@ -55,7 +55,7 @@ static u64 nbd_bytesizes[MAX_NBD]; static struct nbd_device nbd_dev[MAX_NBD]; -static devfs_handle_t devfs_handle = NULL; +static devfs_handle_t devfs_handle; #define DEBUG( s ) /* #define DEBUG( s ) printk( s ) diff -urN -X dontdiff linux/drivers/block/paride/pg.c bss/drivers/block/paride/pg.c --- linux/drivers/block/paride/pg.c Thu Jul 13 05:58:42 2000 +++ bss/drivers/block/paride/pg.c Thu Oct 5 22:13:47 2000 @@ -289,7 +289,7 @@ } } -static devfs_handle_t devfs_handle = NULL; +static devfs_handle_t devfs_handle; int pg_init (void) /* preliminary initialisation */ diff -urN -X dontdiff linux/drivers/block/paride/pt.c bss/drivers/block/paride/pt.c --- linux/drivers/block/paride/pt.c Thu Jul 13 05:58:42 2000 +++ bss/drivers/block/paride/pt.c Thu Oct 5 22:13:28 2000 @@ -293,7 +293,7 @@ } } -static devfs_handle_t devfs_handle = NULL; +static devfs_handle_t devfs_handle; int pt_init (void) /* preliminary initialisation */ diff -urN -X dontdiff linux/drivers/block/rd.c bss/drivers/block/rd.c --- linux/drivers/block/rd.c Thu Jul 13 05:58:42 2000 +++ bss/drivers/block/rd.c Thu Oct 5 22:45:54 2000 @@ -99,7 +99,7 @@ static int rd_hardsec[NUM_RAMDISKS]; /* Size of real blocks in bytes */ static int rd_blocksizes[NUM_RAMDISKS]; /* Size of 1024 byte blocks :) */ static int rd_kbsize[NUM_RAMDISKS]; /* Size in blocks of 1024 bytes */ -static devfs_handle_t devfs_handle = NULL; +static devfs_handle_t devfs_handle; static struct inode *rd_inode[NUM_RAMDISKS]; /* Protected device inodes */ /* @@ -778,11 +778,11 @@ static uch *inbuf; static uch *window; -static unsigned insize = 0; /* valid bytes in inbuf */ -static unsigned inptr = 0; /* index of next byte to be processed in inbuf */ -static unsigned outcnt = 0; /* bytes in output buffer */ -static int exit_code = 0; -static long bytes_out = 0; +static unsigned insize; /* valid bytes in inbuf */ +static unsigned inptr; /* index of next byte to be processed in inbuf */ +static unsigned outcnt; /* bytes in output buffer */ +static int exit_code; +static long bytes_out; static struct file *crd_infp, *crd_outfp; #define get_byte() (inptr < insize ? inbuf[inptr++] : fill_inbuf()) diff -urN -X dontdiff linux/drivers/block/xd.c bss/drivers/block/xd.c --- linux/drivers/block/xd.c Mon Oct 2 22:22:40 2000 +++ bss/drivers/block/xd.c Thu Oct 5 22:46:16 2000 @@ -90,7 +90,7 @@ #include #define xd_dma_mem_alloc(size) __get_dma_pages(GFP_KERNEL,get_order(size)) #define xd_dma_mem_free(addr, size) free_pages(addr, get_order(size)) -static char *xd_dma_buffer = 0; +static char *xd_dma_buffer; static XD_SIGNATURE xd_sigs[] __initdata = { { 0x0000,"Override geometry handler",NULL,xd_override_init_drive,"n unknown" }, /* Pat Mackinlay, pat@it.com.au */ @@ -140,7 +140,7 @@ }; static DECLARE_WAIT_QUEUE_HEAD(xd_wait_int); static DECLARE_WAIT_QUEUE_HEAD(xd_wait_open); -static u_char xd_valid[XD_MAXDRIVES] = { 0,0 }; +static u_char xd_valid[XD_MAXDRIVES]; static u_char xd_drives, xd_irq = 5, xd_dma = 3, xd_maxsectors; static u_char xd_override __initdata, xd_type __initdata; static u_short xd_iobase = 0x320; @@ -154,7 +154,7 @@ static volatile u_char xd_error; static int nodma = XD_DONT_USE_DMA; -static devfs_handle_t devfs_handle = NULL; +static devfs_handle_t devfs_handle; /* xd_init: register the block device number and set up pointer tables */ int __init xd_init (void) diff -urN -X dontdiff linux/drivers/cdrom/cdrom.c bss/drivers/cdrom/cdrom.c --- linux/drivers/cdrom/cdrom.c Tue Sep 26 01:05:01 2000 +++ bss/drivers/cdrom/cdrom.c Thu Oct 5 22:24:33 2000 @@ -267,15 +267,15 @@ #include /* used to tell the module to turn on full debugging messages */ -static int debug = 0; +static int debug; /* used to keep tray locked at all times */ -static int keeplocked = 0; +static int keeplocked; /* default compatibility mode */ static int autoclose=1; -static int autoeject=0; +static int autoeject; static int lockdoor = 1; /* will we ever get to use this... sigh. */ -static int check_media_type = 0; +static int check_media_type; MODULE_PARM(debug, "i"); MODULE_PARM(autoclose, "i"); MODULE_PARM(autoeject, "i"); @@ -326,8 +326,8 @@ #ifdef CONFIG_SYSCTL static void cdrom_sysctl_register(void); #endif /* CONFIG_SYSCTL */ -static struct cdrom_device_info *topCdromPtr = NULL; -static devfs_handle_t devfs_handle = NULL; +static struct cdrom_device_info *topCdromPtr; +static devfs_handle_t devfs_handle; struct block_device_operations cdrom_fops = { @@ -346,12 +346,12 @@ int register_cdrom(struct cdrom_device_info *cdi) { - static char banner_printed = 0; + static char banner_printed; int major = MAJOR(cdi->dev); struct cdrom_device_ops *cdo = cdi->ops; int *change_capability = (int *)&cdo->capability; /* hack */ char vname[16]; - static unsigned int cdrom_counter = 0; + static unsigned int cdrom_counter; cdinfo(CD_OPEN, "entering register_cdrom\n"); @@ -2566,7 +2566,7 @@ static void cdrom_sysctl_register(void) { - static int initialized = 0; + static int initialized; if (initialized == 1) return; diff -urN -X dontdiff linux/drivers/cdrom/sbpcd.c bss/drivers/cdrom/sbpcd.c --- linux/drivers/cdrom/sbpcd.c Tue Sep 5 21:46:15 2000 +++ bss/drivers/cdrom/sbpcd.c Thu Oct 5 22:23:29 2000 @@ -561,9 +561,9 @@ static int sbpcd_ioaddr = CDROM_PORT; /* default I/O base address */ static int sbpro_type = SBPRO; -static unsigned char setup_done = 0; -static unsigned char f_16bit = 0; -static unsigned char do_16bit = 0; +static unsigned char setup_done; +static unsigned char f_16bit; +static unsigned char do_16bit; static int CDo_command, CDo_reset; static int CDo_sel_i_d, CDo_enable; static int CDi_info, CDi_status, CDi_data; @@ -575,7 +575,7 @@ static struct cdrom_volctrl volctrl; static struct cdrom_read_audio read_audio; -static unsigned char msgnum=0; +static unsigned char msgnum; static char msgbuf[80]; static const char *str_sb = "SoundBlaster"; @@ -618,26 +618,26 @@ static u_char familyT[]="CD-55"; /* TEAC CD-55A */ static u_char familyV[]="ECS-AT"; /* ECS Vertos 100 */ -static u_int recursion=0; /* internal testing only */ -static u_int fatal_err=0; /* internal testing only */ -static u_int response_count=0; +static u_int recursion; /* internal testing only */ +static u_int fatal_err; /* internal testing only */ +static u_int response_count; static u_int flags_cmd_out; -static u_char cmd_type=0; +static u_char cmd_type; static u_char drvcmd[10]; static u_char infobuf[20]; static u_char xa_head_buf[CD_XA_HEAD]; static u_char xa_tail_buf[CD_XA_TAIL]; #if OLD_BUSY -static volatile u_char busy_data=0; -static volatile u_char busy_audio=0; /* true semaphores would be safer */ +static volatile u_char busy_data; +static volatile u_char busy_audio; /* true semaphores would be safer */ #endif OLD_BUSY static DECLARE_MUTEX(ioctl_read_sem); static u_long timeout; -static volatile u_char timed_out_delay=0; -static volatile u_char timed_out_data=0; +static volatile u_char timed_out_delay; +static volatile u_char timed_out_data; #if 0 -static volatile u_char timed_out_audio=0; +static volatile u_char timed_out_audio; #endif static u_int datarate= 1000000; static u_int maxtim16=16000000; @@ -656,15 +656,15 @@ #endif /*==========================================================================*/ -static int ndrives=0; +static int ndrives; static u_char drv_pattern[NR_SBPCD]={speed_auto,speed_auto,speed_auto,speed_auto}; -static int sbpcd_blocksizes[NR_SBPCD] = {0, }; +static int sbpcd_blocksizes[NR_SBPCD]; /*==========================================================================*/ /* * drive space begins here (needed separate for each unit) */ -static int d=0; /* DriveStruct index: drive number */ +static int d; /* DriveStruct index: drive number */ static struct { char drv_id; /* "jumpered" drive ID or -1 */ @@ -5654,7 +5654,7 @@ * Called once at boot or load time. */ -static devfs_handle_t devfs_handle = NULL; +static devfs_handle_t devfs_handle; #ifdef MODULE int __init __SBPCD_INIT(void) diff -urN -X dontdiff linux/drivers/char/acquirewdt.c bss/drivers/char/acquirewdt.c --- linux/drivers/char/acquirewdt.c Mon Oct 2 03:45:29 2000 +++ bss/drivers/char/acquirewdt.c Thu Oct 5 23:22:02 2000 @@ -40,7 +40,7 @@ #include #include -static int acq_is_open=0; +static int acq_is_open; static spinlock_t acq_lock; /* diff -urN -X dontdiff linux/drivers/char/console.c bss/drivers/char/console.c --- linux/drivers/char/console.c Wed Aug 9 22:18:26 2000 +++ bss/drivers/char/console.c Thu Oct 5 22:50:35 2000 @@ -108,7 +108,7 @@ #include "console_macros.h" -struct consw *conswitchp = NULL; +struct consw *conswitchp; /* A bitmap for codes <32. A bit of 1 indicates that the code * corresponding to that bit number invokes some special action @@ -152,14 +152,14 @@ static void hide_cursor(int currcons); static void unblank_screen_t(unsigned long dummy); -static int printable = 0; /* Is console ready for printing? */ +static int printable; /* Is console ready for printing? */ -int do_poke_blanked_console = 0; -int console_blanked = 0; +int do_poke_blanked_console; +int console_blanked; -static int vesa_blank_mode = 0; /* 0:none 1:suspendV 2:suspendH 3:powerdown */ +static int vesa_blank_mode; /* 0:none 1:suspendV 2:suspendH 3:powerdown */ static int blankinterval = 10*60*HZ; -static int vesa_off_interval = 0; +static int vesa_off_interval; /* * fg_console is the current virtual console, @@ -167,10 +167,10 @@ * want_console is the console we want to switch to, * kmsg_redirect is the console for kernel messages, */ -int fg_console = 0; -int last_console = 0; +int fg_console; +int last_console; int want_console = -1; -int kmsg_redirect = 0; +int kmsg_redirect; /* * For each existing display, we have a pointer to console currently visible @@ -178,7 +178,7 @@ * appropriately. Unless the low-level driver supplies its own display_fg * variable, we use this one for the "master display". */ -static struct vc_data *master_display_fg = NULL; +static struct vc_data *master_display_fg; /* * Unfortunately, we need to delay tty echo when we're currently writing to the @@ -192,13 +192,13 @@ /* * For the same reason, we defer scrollback to the console tasklet. */ -static int scrollback_delta = 0; +static int scrollback_delta; /* * Hook so that the power management routines can (un)blank * the console on our behalf. */ -int (*console_blank_hook)(int) = NULL; +int (*console_blank_hook)(int); static struct timer_list console_timer; @@ -216,7 +216,7 @@ #endif static int pm_con_request(struct pm_dev *dev, pm_request_t rqst, void *data); -static struct pm_dev *pm_con = NULL; +static struct pm_dev *pm_con; static inline unsigned short *screenpos(int currcons, int offset, int viewed) { @@ -415,9 +415,9 @@ /* used by selection: complement pointer position */ void complement_pos(int currcons, int offset) { - static unsigned short *p = NULL; - static unsigned short old = 0; - static unsigned short oldx = 0, oldy = 0; + static unsigned short *p; + static unsigned short old; + static unsigned short oldx, oldy; if (p) { scr_writew(old, p); @@ -2056,7 +2056,7 @@ { int currcons = fg_console; unsigned char c; - static unsigned long printing = 0; + static unsigned long printing; const ushort *start; ushort cnt = 0; ushort myx; diff -urN -X dontdiff linux/drivers/char/cyclades.c bss/drivers/char/cyclades.c --- linux/drivers/char/cyclades.c Thu Jul 13 00:19:41 2000 +++ bss/drivers/char/cyclades.c Thu Oct 5 22:59:38 2000 @@ -770,7 +770,7 @@ */ static struct cyclades_port cy_port[NR_PORTS]; -static int cy_next_channel = 0; /* next minor available */ +static int cy_next_channel; /* next minor available */ static struct tty_struct *serial_table[NR_PORTS]; static struct termios *serial_termios[NR_PORTS]; @@ -862,9 +862,9 @@ /* PCI related definitions */ -static unsigned short cy_pci_nboard = 0; -static unsigned short cy_isa_nboard = 0; -static unsigned short cy_nboard = 0; +static unsigned short cy_pci_nboard; +static unsigned short cy_isa_nboard; +static unsigned short cy_nboard; #ifdef CONFIG_PCI static unsigned short cy_pci_dev_id[] = { PCI_DEVICE_ID_CYCLOM_Y_Lo, /* PCI < 1Mb */ diff -urN -X dontdiff linux/drivers/char/dsp56k.c bss/drivers/char/dsp56k.c --- linux/drivers/char/dsp56k.c Thu Jul 13 05:58:42 2000 +++ bss/drivers/char/dsp56k.c Thu Oct 5 22:16:36 2000 @@ -509,7 +509,7 @@ /****** Init and module functions ******/ -static devfs_handle_t devfs_handle = NULL; +static devfs_handle_t devfs_handle; int __init dsp56k_init(void) { diff -urN -X dontdiff linux/drivers/char/epca.c bss/drivers/char/epca.c --- linux/drivers/char/epca.c Tue Jul 18 23:57:36 2000 +++ bss/drivers/char/epca.c Thu Oct 5 22:59:09 2000 @@ -78,11 +78,11 @@ /* ----------------- Begin global definitions ------------------- */ static char mesg[100]; -static int pc_refcount, nbdevs = 0, num_cards = 0, liloconfig = 0; +static int pc_refcount, nbdevs, num_cards, liloconfig; static int digi_poller_inhibited = 1 ; -static int setup_error_code = 0; -static int invalid_lilo_config = 0; +static int setup_error_code; +static int invalid_lilo_config; /* ----------------------------------------------------------------------- MAXBOARDS is typically 12, but ISA and EISA cards are restricted to diff -urN -X dontdiff linux/drivers/char/esp.c bss/drivers/char/esp.c --- linux/drivers/char/esp.c Mon Feb 14 23:34:21 2000 +++ bss/drivers/char/esp.c Thu Oct 5 23:02:25 2000 @@ -70,9 +70,8 @@ #define NR_PRIMARY 8 /* maximum number of primary ports */ /* The following variables can be set by giving module options */ -static int irq[NR_PRIMARY] = {0,0,0,0,0,0,0,0}; /* IRQ for each base port */ -static unsigned int divisor[NR_PRIMARY] = {0,0,0,0,0,0,0,0}; - /* custom divisor for each port */ +static int irq[NR_PRIMARY]; /* IRQ for each base port */ +static unsigned int divisor[NR_PRIMARY]; /* custom divisor for each port */ static unsigned int dma = ESP_DMA_CHANNEL; /* DMA channel */ static unsigned int rx_trigger = ESP_RX_TRIGGER; static unsigned int tx_trigger = ESP_TX_TRIGGER; @@ -168,7 +167,7 @@ * buffer across all the serial ports, since it significantly saves * memory if large numbers of serial ports are open. */ -static unsigned char *tmp_buf = 0; +static unsigned char *tmp_buf; static DECLARE_MUTEX(tmp_buf_sem); static inline int serial_paranoia_check(struct esp_struct *info, diff -urN -X dontdiff linux/drivers/char/ftape/lowlevel/fdc-io.c bss/drivers/char/ftape/lowlevel/fdc-io.c --- linux/drivers/char/ftape/lowlevel/fdc-io.c Tue Nov 23 18:29:15 1999 +++ bss/drivers/char/ftape/lowlevel/fdc-io.c Thu Oct 5 23:15:08 2000 @@ -50,10 +50,10 @@ /* Global vars. */ -int ftape_motor = 0; +int ftape_motor; volatile int ftape_current_cylinder = -1; volatile fdc_mode_enum fdc_mode = fdc_idle; -fdc_config_info fdc = {0}; +fdc_config_info fdc; DECLARE_WAIT_QUEUE_HEAD(ftape_wait_intr); unsigned int ft_fdc_base = CONFIG_FT_FDC_BASE; @@ -73,15 +73,15 @@ volatile __u8 fdc_cyl; /* FDC track from sector id */ volatile __u8 fdc_sect; /* FDC sector from sector id */ static int fdc_data_rate = 500; /* data rate (Kbps) */ -static int fdc_rate_code = 0; /* data rate code (0 == 500 Kbps) */ +static int fdc_rate_code; /* data rate code (0 == 500 Kbps) */ static int fdc_seek_rate = 2; /* step rate (msec) */ static void (*do_ftape) (void); static int fdc_fifo_state; /* original fifo setting - fifo enabled */ static int fdc_fifo_thr; /* original fifo setting - threshold */ static int fdc_lock_state; /* original lock setting - locked */ -static int fdc_fifo_locked = 0; /* has fifo && lock set ? */ -static __u8 fdc_precomp = 0; /* default precomp. value (nsec) */ -static __u8 fdc_prec_code = 0; /* fdc precomp. select code */ +static int fdc_fifo_locked; /* has fifo && lock set ? */ +static __u8 fdc_precomp; /* default precomp. value (nsec) */ +static __u8 fdc_prec_code; /* fdc precomp. select code */ static char ftape_id[] = "ftape"; /* used by request irq and free irq */ @@ -188,7 +188,7 @@ int count = cmd_len; int retry = 0; #ifdef TESTING - static unsigned int last_time = 0; + static unsigned int last_time; unsigned int time; #endif TRACE_FUN(ft_t_any); @@ -387,7 +387,7 @@ { DECLARE_WAITQUEUE(wait,current); sigset_t old_sigmask; - static int resetting = 0; + static int resetting; long timeout; TRACE_FUN(ft_t_fdc_dma); @@ -868,7 +868,7 @@ TRACE_EXIT 0; } -static int perpend_mode = 0; /* set if fdc is in perpendicular mode */ +static int perpend_mode; /* set if fdc is in perpendicular mode */ static int perpend_off(void) { @@ -1113,7 +1113,7 @@ /* Determine fd controller type */ -static __u8 fdc_save_state[2] = {0, 0}; +static __u8 fdc_save_state[2]; int fdc_probe(void) { @@ -1283,7 +1283,7 @@ static int fdc_config(void) { - static int already_done = 0; + static int already_done; TRACE_FUN(ft_t_any); if (already_done) { diff -urN -X dontdiff linux/drivers/char/ftape/lowlevel/fdc-isr.c bss/drivers/char/ftape/lowlevel/fdc-isr.c --- linux/drivers/char/ftape/lowlevel/fdc-isr.c Tue Nov 25 22:45:27 1997 +++ bss/drivers/char/ftape/lowlevel/fdc-isr.c Thu Oct 5 23:15:59 2000 @@ -44,10 +44,10 @@ /* Global vars. */ -volatile int ft_expected_stray_interrupts = 0; -volatile int ft_interrupt_seen = 0; -volatile int ft_seek_completed = 0; -volatile int ft_hide_interrupt = 0; +volatile int ft_expected_stray_interrupts; +volatile int ft_interrupt_seen; +volatile int ft_seek_completed; +volatile int ft_hide_interrupt; /* Local vars. */ typedef enum { @@ -55,7 +55,7 @@ data_am_error = 0x04, data_crc_error = 0x08, no_data_error = 0x10, overrun_error = 0x20, } error_cause; -static int stop_read_ahead = 0; +static int stop_read_ahead; static void print_error_cause(int cause) @@ -730,7 +730,7 @@ */ static void handle_fdc_busy(buffer_struct *buff) { - static int no_data_error_count = 0; + static int no_data_error_count; int retry = 0; error_cause cause; __u8 in[7]; @@ -1077,7 +1077,7 @@ */ void fdc_isr(void) { - static int isr_active = 0; + static int isr_active; #ifdef TESTING unsigned int t0 = ftape_timestamp(); #endif diff -urN -X dontdiff linux/drivers/char/ftape/lowlevel/ftape-bsm.c bss/drivers/char/ftape/lowlevel/ftape-bsm.c --- linux/drivers/char/ftape/lowlevel/ftape-bsm.c Tue Nov 23 18:29:15 1999 +++ bss/drivers/char/ftape/lowlevel/ftape-bsm.c Thu Oct 5 23:16:30 2000 @@ -39,8 +39,8 @@ /* Local vars. */ -static __u8 *bad_sector_map = NULL; -static SectorCount *bsm_hash_ptr = NULL; +static __u8 *bad_sector_map; +static SectorCount *bsm_hash_ptr; typedef enum { forward, backward @@ -454,7 +454,7 @@ * For true random access it may have to be redesigned. */ static int last_reference = -1; - static SectorMap map = 0; + static SectorMap map; if (segment_id > last_reference) { /* Skip all sectors before segment_id diff -urN -X dontdiff linux/drivers/char/ftape/lowlevel/ftape-format.c bss/drivers/char/ftape/lowlevel/ftape-format.c --- linux/drivers/char/ftape/lowlevel/ftape-format.c Tue Nov 25 22:45:27 1997 +++ bss/drivers/char/ftape/lowlevel/ftape-format.c Thu Oct 5 23:18:06 2000 @@ -47,7 +47,7 @@ /* * first segment of the new buffer */ -static int switch_segment = 0; +static int switch_segment; /* * at most 256 segments fit into one 32 kb buffer. Even TR-1 cartridges have diff -urN -X dontdiff linux/drivers/char/ftape/lowlevel/ftape-io.c bss/drivers/char/ftape/lowlevel/ftape-io.c --- linux/drivers/char/ftape/lowlevel/ftape-io.c Tue Aug 31 19:30:48 1999 +++ bss/drivers/char/ftape/lowlevel/ftape-io.c Thu Oct 5 23:17:53 2000 @@ -50,14 +50,14 @@ */ /* NOTE: sectors start numbering at 1, all others at 0 ! */ ft_timeout_table ftape_timeout; -unsigned int ftape_tape_len = 0; +unsigned int ftape_tape_len; volatile qic117_cmd_t ftape_current_command; const struct qic117_command_table qic117_cmds[] = QIC117_COMMANDS; int ftape_might_be_off_track; /* Local vars. */ -static int diagnostic_mode = 0; +static int diagnostic_mode; static unsigned int ftape_udelay_count; static unsigned int ftape_udelay_time; @@ -232,7 +232,7 @@ int ftape_command(qic117_cmd_t command) { int result = 0; - static int level = 0; + static int level; TRACE_FUN(ft_t_any); if ((unsigned int)command > NR_ITEMS(qic117_cmds)) { @@ -778,7 +778,7 @@ int status; int result = 0; unsigned int data_rate = new_rate; - static int supported = 0; + static int supported; int rate_changed = 0; qic_model dummy_model; unsigned int dummy_qic_std, dummy_tape_len; diff -urN -X dontdiff linux/drivers/char/ftape/lowlevel/ftape-rw.c bss/drivers/char/ftape/lowlevel/ftape-rw.c --- linux/drivers/char/ftape/lowlevel/ftape-rw.c Sun Sep 3 19:47:46 2000 +++ bss/drivers/char/ftape/lowlevel/ftape-rw.c Thu Oct 5 23:17:09 2000 @@ -43,18 +43,18 @@ /* Global vars. */ -int ft_nr_buffers = 0; -buffer_struct *ft_buffer[FT_MAX_NR_BUFFERS] = {NULL, }; +int ft_nr_buffers; +buffer_struct *ft_buffer[FT_MAX_NR_BUFFERS]; static volatile int ft_head; static volatile int ft_tail; /* not volatile but need same type as head */ int fdc_setup_error; location_record ft_location = {-1, 0}; -volatile int ftape_tape_running = 0; +volatile int ftape_tape_running; /* Local vars. */ -static int overrun_count_offset = 0; -static int inhibit_correction = 0; +static int overrun_count_offset; +static int inhibit_correction; /* maxmimal allowed overshoot when fast seeking */ diff -urN -X dontdiff linux/drivers/char/ftape/lowlevel/ftape-tracing.c bss/drivers/char/ftape/lowlevel/ftape-tracing.c --- linux/drivers/char/ftape/lowlevel/ftape-tracing.c Tue Nov 25 22:45:27 1997 +++ bss/drivers/char/ftape/lowlevel/ftape-tracing.c Thu Oct 5 23:18:19 2000 @@ -43,11 +43,11 @@ * 8 + everything else */ ft_trace_t ftape_tracing = ft_t_info; /* Default level: information and up */ -int ftape_function_nest_level = 0; +int ftape_function_nest_level; /* Local vars. */ -static __u8 trace_id = 0; +static __u8 trace_id; static char spacing[] = "* "; void ftape_trace_call(const char *file, const char *name) diff -urN -X dontdiff linux/drivers/char/ftape/lowlevel/ftape-write.c bss/drivers/char/ftape/lowlevel/ftape-write.c --- linux/drivers/char/ftape/lowlevel/ftape-write.c Tue Nov 25 22:45:27 1997 +++ bss/drivers/char/ftape/lowlevel/ftape-write.c Thu Oct 5 23:20:53 2000 @@ -47,7 +47,7 @@ /* Local vars. */ -static int last_write_failed = 0; +static int last_write_failed; void ftape_zap_write_buffers(void) { diff -urN -X dontdiff linux/drivers/char/ftape/zftape/zftape-buffers.c bss/drivers/char/ftape/zftape/zftape-buffers.c --- linux/drivers/char/ftape/zftape/zftape-buffers.c Sun Nov 8 19:13:46 1998 +++ bss/drivers/char/ftape/zftape/zftape-buffers.c Thu Oct 5 23:21:52 2000 @@ -48,8 +48,8 @@ /* local varibales */ -static unsigned int used_memory = 0; -static unsigned int peak_memory = 0; +static unsigned int used_memory; +static unsigned int peak_memory; void zft_memory_stats(void) { diff -urN -X dontdiff linux/drivers/char/ftape/zftape/zftape-ctl.c bss/drivers/char/ftape/zftape/zftape-ctl.c --- linux/drivers/char/ftape/zftape/zftape-ctl.c Wed May 6 18:56:03 1998 +++ bss/drivers/char/ftape/zftape/zftape-ctl.c Thu Oct 5 23:19:53 2000 @@ -49,16 +49,16 @@ /* Global vars. */ -int zft_write_protected = 0; /* this is when cartridge rdonly or O_RDONLY */ -int zft_header_read = 0; -int zft_offline = 0; -unsigned int zft_unit = 0; -int zft_resid = 0; -int zft_mt_compression = 0; +int zft_write_protected; /* this is when cartridge rdonly or O_RDONLY */ +int zft_header_read; +int zft_offline; +unsigned int zft_unit; +int zft_resid; +int zft_mt_compression; /* Local vars. */ -static int going_offline = 0; +static int going_offline; typedef int (mt_fun)(int *argptr); typedef int (*mt_funp)(int *argptr); diff -urN -X dontdiff linux/drivers/char/ftape/zftape/zftape-read.c bss/drivers/char/ftape/zftape/zftape-read.c --- linux/drivers/char/ftape/zftape/zftape-read.c Thu Mar 12 18:33:21 1998 +++ bss/drivers/char/ftape/zftape/zftape-read.c Thu Oct 5 23:20:21 2000 @@ -45,11 +45,11 @@ /* Global vars. */ -int zft_just_before_eof = 0; +int zft_just_before_eof; /* Local vars. */ -static int buf_len_rd = 0; +static int buf_len_rd; void zft_zap_read_buffers(void) { @@ -194,7 +194,7 @@ int *req_clipped, const zft_position *pos) { - static __s64 remaining = 0; + static __s64 remaining; static int eod; TRACE_FUN(ft_t_flow); diff -urN -X dontdiff linux/drivers/char/ftape/zftape/zftape-rw.c bss/drivers/char/ftape/zftape/zftape-rw.c --- linux/drivers/char/ftape/zftape/zftape-rw.c Sat Feb 21 02:28:22 1998 +++ bss/drivers/char/ftape/zftape/zftape-rw.c Thu Oct 5 23:19:10 2000 @@ -41,14 +41,14 @@ /* Global vars. */ -__u8 *zft_deblock_buf = NULL; -__u8 *zft_hseg_buf = NULL; +__u8 *zft_deblock_buf; +__u8 *zft_hseg_buf; int zft_deblock_segment = -1; zft_status_enum zft_io_state = zft_idle; -int zft_header_changed = 0; -int zft_bad_sector_map_changed = 0; -int zft_qic113 = 0; /* conform to old specs. and old zftape */ -int zft_use_compression = 0; +int zft_header_changed; +int zft_bad_sector_map_changed; +int zft_qic113; /* conform to old specs. and old zftape */ +int zft_use_compression; zft_position zft_pos = { -1, /* seg_pos */ 0, /* seg_byte_pos */ @@ -56,10 +56,10 @@ 0 /* volume_pos */ }; unsigned int zft_blk_sz = CONFIG_ZFT_DFLT_BLK_SZ; -__s64 zft_capacity = 0; +__s64 zft_capacity; -unsigned int zft_written_segments = 0; -int zft_label_changed = 0; +unsigned int zft_written_segments; +int zft_label_changed; /* Local vars. */ @@ -165,8 +165,8 @@ * Also, it might be in the future that the bad sector map gets * changed. -> reset the cache */ -static int seg_pos = 0; -static __s64 tape_pos = 0; +static int seg_pos; +static __s64 tape_pos; __s64 zft_get_capacity(void) { diff -urN -X dontdiff linux/drivers/char/ftape/zftape/zftape-vtbl.c bss/drivers/char/ftape/zftape/zftape-vtbl.c --- linux/drivers/char/ftape/zftape/zftape-vtbl.c Tue Nov 25 22:45:28 1997 +++ bss/drivers/char/ftape/zftape/zftape-vtbl.c Thu Oct 5 23:21:35 2000 @@ -48,8 +48,8 @@ * global variables */ int zft_qic_mode = 1; /* use the vtbl */ -int zft_old_ftape = 0; /* prevents old ftaped tapes to be overwritten */ -int zft_volume_table_changed = 0; /* for write_header_segments() */ +int zft_old_ftape; /* prevents old ftaped tapes to be overwritten */ +int zft_volume_table_changed; /* for write_header_segments() */ /* * private variables (only exported for inline functions) @@ -59,9 +59,9 @@ /* We could also allocate these dynamically when extracting the volume table * sizeof(zft_volinfo) is about 32 or something close to that */ -static zft_volinfo tape_vtbl = { {NULL, NULL}, 0, }; -static zft_volinfo eot_vtbl = { {NULL, NULL}, 0, }; -static zft_volinfo *cur_vtbl = NULL; +static zft_volinfo tape_vtbl; +static zft_volinfo eot_vtbl; +static zft_volinfo *cur_vtbl; inline void zft_new_vtbl_entry(void) { diff -urN -X dontdiff linux/drivers/char/ftape/zftape/zftape-write.c bss/drivers/char/ftape/zftape/zftape-write.c --- linux/drivers/char/ftape/zftape/zftape-write.c Thu Mar 12 18:33:21 1998 +++ bss/drivers/char/ftape/zftape/zftape-write.c Thu Oct 5 23:21:09 2000 @@ -48,8 +48,8 @@ /* Local vars. */ -static int last_write_failed = 0; -static int need_flush = 0; +static int last_write_failed; +static int need_flush; void zft_prevent_flush(void) { diff -urN -X dontdiff linux/drivers/char/generic_serial.c bss/drivers/char/generic_serial.c --- linux/drivers/char/generic_serial.c Fri Aug 11 22:54:17 2000 +++ bss/drivers/char/generic_serial.c Thu Oct 5 23:05:49 2000 @@ -33,7 +33,7 @@ static char * tmp_buf; static DECLARE_MUTEX(tmp_buf_sem); -int gs_debug = 0; +int gs_debug; #ifdef DEBUG diff -urN -X dontdiff linux/drivers/char/ip2/i2ellis.c bss/drivers/char/ip2/i2ellis.c --- linux/drivers/char/ip2/i2ellis.c Wed Jul 5 19:00:21 2000 +++ bss/drivers/char/ip2/i2ellis.c Thu Oct 5 22:17:30 2000 @@ -51,9 +51,9 @@ //* Static Data * //*************** -static int ii2Safe = 0; // Safe I/O address for delay routine +static int ii2Safe; // Safe I/O address for delay routine -static int iiDelayed = 0; // Set when the iiResetDelay function is +static int iiDelayed; // Set when the iiResetDelay function is // called. Cleared when ANY board is reset. static struct timer_list * pDelayTimer; // Used by iiDelayTimer static wait_queue_head_t pDelayWait; // Used by iiDelayTimer diff -urN -X dontdiff linux/drivers/char/ip2main.c bss/drivers/char/ip2main.c --- linux/drivers/char/ip2main.c Fri Jul 14 20:20:22 2000 +++ bss/drivers/char/ip2main.c Thu Oct 5 22:19:34 2000 @@ -295,13 +295,13 @@ /* Here, then is a table of board pointers which the interrupt routine should * scan through to determine who it must service. */ -static unsigned short i2nBoards = 0; // Number of boards here +static unsigned short i2nBoards; // Number of boards here static i2eBordStrPtr i2BoardPtrTable[IP2_MAX_BOARDS]; static i2ChanStrPtr DevTable[IP2_MAX_PORTS]; //DevTableMem just used to save addresses for kfree -static void *DevTableMem[IP2_MAX_BOARDS] = {NULL,NULL,NULL,NULL}; +static void *DevTableMem[IP2_MAX_BOARDS]; static struct tty_struct * TtyTable[IP2_MAX_PORTS]; static struct termios * Termios[IP2_MAX_PORTS]; @@ -318,8 +318,8 @@ open: ip2_ipl_open, }; -static long irq_counter = 0; -static long bh_counter = 0; +static long irq_counter; +static long bh_counter; // Use immediate queue to service interrupts //#define USE_IQI // PCI&2.2 needs work @@ -330,15 +330,15 @@ */ #define POLL_TIMEOUT (jiffies + 1) static struct timer_list PollTimer = { function: ip2_poll }; -static char TimerOn = 0; +static char TimerOn; #ifdef IP2DEBUG_TRACE /* Trace (debug) buffer data */ #define TRACEMAX 1000 static unsigned long tracebuf[TRACEMAX]; -static int tracestuff = 0; -static int tracestrip = 0; -static int tracewrap = 0; +static int tracestuff; +static int tracestrip; +static int tracewrap; #endif /**********/ @@ -372,13 +372,13 @@ # endif /* LINUX_VERSION */ #endif /* MODULE */ -static int poll_only = 0; +static int poll_only; -static int Eisa_irq = 0; -static int Eisa_slot = 0; +static int Eisa_irq; +static int Eisa_slot; -static int iindx = 0; -static char rirqs[IP2_MAX_BOARDS] = {0,}; +static int iindx; +static char rirqs[IP2_MAX_BOARDS]; static int Valid_Irqs[] = { 3, 4, 5, 7, 10, 11, 12, 15, 0}; /******************************************************************************/ @@ -584,13 +584,13 @@ old_ip2_init(void) { #ifdef CONFIG_DEVFS_FS - static devfs_handle_t devfs_handle = NULL; + static devfs_handle_t devfs_handle; int j, box; #endif int i; int err; int status = 0; - static int loaded = 0; + static int loaded; i2eBordStrPtr pB = NULL; int rc = -1; diff -urN -X dontdiff linux/drivers/char/istallion.c bss/drivers/char/istallion.c --- linux/drivers/char/istallion.c Tue Jul 18 23:57:58 2000 +++ bss/drivers/char/istallion.c Thu Oct 5 22:16:09 2000 @@ -142,7 +142,7 @@ */ #define STLI_EISAPROBE 0 -static devfs_handle_t devfs_handle = NULL; +static devfs_handle_t devfs_handle; /*****************************************************************************/ @@ -189,7 +189,7 @@ * swapping!). All ports will share one buffer - since if the system * is already swapping a shared buffer won't make things any worse. */ -static char *stli_tmpwritebuf = (char *) NULL; +static char *stli_tmpwritebuf; static DECLARE_MUTEX(stli_tmpwritesem); #define STLI_TXBUFSIZE 4096 @@ -201,10 +201,10 @@ * with a large memcpy. Just use 1 buffer for all ports, since its * use it is only need for short periods of time by each port. */ -static char *stli_txcookbuf = (char *) NULL; -static int stli_txcooksize = 0; -static int stli_txcookrealsize = 0; -static struct tty_struct *stli_txcooktty = (struct tty_struct *) NULL; +static char *stli_txcookbuf; +static int stli_txcooksize; +static int stli_txcookrealsize; +static struct tty_struct *stli_txcooktty; /* * Define a local default termios struct. All ports will be created @@ -234,7 +234,7 @@ static stlibrd_t *stli_brds[STL_MAXBRDS]; -static int stli_shared = 0; +static int stli_shared; /* * Per board state flags. Used with the state field of the board struct. @@ -796,7 +796,7 @@ function: stli_poll }; -static int stli_timeron = 0; +static int stli_timeron; /* * Define the calculation for the timeout routine. diff -urN -X dontdiff linux/drivers/char/joystick/gameport.c bss/drivers/char/joystick/gameport.c --- linux/drivers/char/joystick/gameport.c Tue Aug 22 17:06:31 2000 +++ bss/drivers/char/joystick/gameport.c Thu Oct 5 23:07:27 2000 @@ -51,9 +51,9 @@ EXPORT_SYMBOL(gameport_rescan); EXPORT_SYMBOL(gameport_cooked_read); -static struct gameport *gameport_list = NULL; -static struct gameport_dev *gameport_dev = NULL; -static int gameport_number = 0; +static struct gameport *gameport_list; +static struct gameport_dev *gameport_dev; +static int gameport_number; /* * gameport_measure_speed() measures the gameport i/o speed. diff -urN -X dontdiff linux/drivers/char/joystick/ns558.c bss/drivers/char/joystick/ns558.c --- linux/drivers/char/joystick/ns558.c Mon Aug 21 16:52:53 2000 +++ bss/drivers/char/joystick/ns558.c Thu Oct 5 23:07:56 2000 @@ -57,7 +57,7 @@ struct gameport gameport; }; -static struct ns558 *ns558 = NULL; +static struct ns558 *ns558; /* * ns558_isa_probe() tries to find an isa gameport at the diff -urN -X dontdiff linux/drivers/char/joystick/serio.c bss/drivers/char/joystick/serio.c --- linux/drivers/char/joystick/serio.c Thu Jun 22 14:59:58 2000 +++ bss/drivers/char/joystick/serio.c Thu Oct 5 23:07:44 2000 @@ -44,9 +44,9 @@ EXPORT_SYMBOL(serio_close); EXPORT_SYMBOL(serio_rescan); -static struct serio *serio_list = NULL; -static struct serio_dev *serio_dev = NULL; -static int serio_number = 0; +static struct serio *serio_list; +static struct serio_dev *serio_dev; +static int serio_number; static void serio_find_dev(struct serio *serio) { diff -urN -X dontdiff linux/drivers/char/keyboard.c bss/drivers/char/keyboard.c --- linux/drivers/char/keyboard.c Tue Aug 1 03:36:10 2000 +++ bss/drivers/char/keyboard.c Thu Oct 5 22:53:19 2000 @@ -61,7 +61,7 @@ #define KBD_DEFLOCK 0 #endif -void (*kbd_ledfunc)(unsigned int led) = NULL; +void (*kbd_ledfunc)(unsigned int led); EXPORT_SYMBOL(handle_scancode); EXPORT_SYMBOL(kbd_ledfunc); @@ -83,24 +83,24 @@ */ /* shift state counters.. */ -static unsigned char k_down[NR_SHIFT] = {0, }; +static unsigned char k_down[NR_SHIFT]; /* keyboard key bitmap */ -static unsigned long key_down[256/BITS_PER_LONG] = { 0, }; +static unsigned long key_down[256/BITS_PER_LONG]; -static int dead_key_next = 0; +static int dead_key_next; /* * In order to retrieve the shift_state (for the mouse server), either * the variable must be global, or a new procedure must be created to * return the value. I chose the former way. */ -int shift_state = 0; +int shift_state; static int npadch = -1; /* -1 or number assembled on pad */ -static unsigned char diacr = 0; -static char rep = 0; /* flag telling character repeat */ +static unsigned char diacr; +static char rep; /* flag telling character repeat */ struct kbd_struct kbd_table[MAX_NR_CONSOLES]; static struct tty_struct **ttytab; static struct kbd_struct * kbd = kbd_table; -static struct tty_struct * tty = NULL; +static struct tty_struct * tty; void compute_shiftstate(void); @@ -160,7 +160,7 @@ static int sysrq_pressed; #endif -static struct pm_dev *pm_kbd = NULL; +static struct pm_dev *pm_kbd; /* * Many other routines do put_queue, but I think either diff -urN -X dontdiff linux/drivers/char/lp.c bss/drivers/char/lp.c --- linux/drivers/char/lp.c Sun Sep 24 05:10:30 2000 +++ bss/drivers/char/lp.c Thu Oct 5 23:07:10 2000 @@ -141,11 +141,11 @@ /* ROUND_UP macro from fs/select.c */ #define ROUND_UP(x,y) (((x)+(y)-1)/(y)) -static devfs_handle_t devfs_handle = NULL; +static devfs_handle_t devfs_handle; struct lp_struct lp_table[LP_NO]; -static unsigned int lp_count = 0; +static unsigned int lp_count; #undef LP_DEBUG @@ -623,8 +623,8 @@ #ifdef MODULE static int parport_nr[LP_NO] = { [0 ... LP_NO-1] = LP_PARPORT_UNSPEC }; -static char *parport[LP_NO] = { NULL, }; -static int reset = 0; +static char *parport[LP_NO]; +static int reset; MODULE_PARM(parport, "1-" __MODULE_STRING(LP_NO) "s"); MODULE_PARM(reset, "i"); @@ -632,9 +632,9 @@ #else static int parport_nr[LP_NO] = { [0 ... LP_NO-1] = LP_PARPORT_UNSPEC }; -static int reset = 0; +static int reset; -static int parport_ptr = 0; +static int parport_ptr; void __init lp_setup(char *str, int *ints) { diff -urN -X dontdiff linux/drivers/char/misc.c bss/drivers/char/misc.c --- linux/drivers/char/misc.c Mon Oct 2 03:45:29 2000 +++ bss/drivers/char/misc.c Thu Oct 5 22:14:11 2000 @@ -174,7 +174,7 @@ int misc_register(struct miscdevice * misc) { - static devfs_handle_t devfs_handle = NULL; + static devfs_handle_t devfs_handle; if (misc->next || misc->prev) return -EBUSY; diff -urN -X dontdiff linux/drivers/char/mxser.c bss/drivers/char/mxser.c --- linux/drivers/char/mxser.c Mon Jun 19 21:25:06 2000 +++ bss/drivers/char/mxser.c Thu Oct 5 22:58:04 2000 @@ -170,10 +170,10 @@ {PCI_VENDOR_ID_MOXA, PCI_DEVICE_ID_C104, MXSER_BOARD_C104_PCI}, }; -static int ioaddr[MXSER_BOARDS] = {0, 0, 0, 0}; +static int ioaddr[MXSER_BOARDS]; static int ttymajor = MXSERMAJOR; static int calloutmajor = MXSERCUMAJOR; -static int verbose = 0; +static int verbose; /* Variables for insmod */ @@ -274,7 +274,7 @@ * buffer across all the serial ports, since it significantly saves * memory if large numbers of serial ports are open. */ -static unsigned char *mxvar_tmp_buf = 0; +static unsigned char *mxvar_tmp_buf; static struct semaphore mxvar_tmp_buf_sem; /* diff -urN -X dontdiff linux/drivers/char/pc110pad.c bss/drivers/char/pc110pad.c --- linux/drivers/char/pc110pad.c Thu Jul 13 05:58:42 2000 +++ bss/drivers/char/pc110pad.c Thu Oct 5 23:12:38 2000 @@ -68,7 +68,7 @@ /* driver/filesystem interface management */ static wait_queue_head_t queue; static struct fasync_struct *asyncptr; -static int active=0; /* number of concurrent open()s */ +static int active; /* number of concurrent open()s */ static struct semaphore reader_lock; /** @@ -111,10 +111,10 @@ * up/down mouse events to be created by incrementing synthesize_tap. */ -static int button_pending=0; -static int recent_transition=0; -static int transition_count=0; -static int synthesize_tap=0; +static int button_pending; +static int recent_transition; +static int transition_count; +static int synthesize_tap; static void tap_timeout(unsigned long data); static struct timer_list tap_timer = { function: tap_timeout }; @@ -218,13 +218,13 @@ */ static int raw_data[3]; -static int raw_data_count=0; -static int raw_x=0, raw_y=0; /* most recent absolute co-ords read */ -static int raw_down=0; /* raw up/down state */ -static int debounced_down=0; /* up/down state after debounce processing */ +static int raw_data_count; +static int raw_x, raw_y; /* most recent absolute co-ords read */ +static int raw_down; /* raw up/down state */ +static int debounced_down; /* up/down state after debounce processing */ static enum { NO_BOUNCE, JUST_GONE_UP, JUST_GONE_DOWN } bounce=NO_BOUNCE; /* set just after an up/down transition */ -static int xy_pending=0; /* set if new data have not yet been read */ +static int xy_pending; /* set if new data have not yet been read */ /* * Timer goes off a short while after an up/down transition and copies @@ -425,7 +425,7 @@ * will make much sense in that case. */ static int read_bytes[3]; -static int read_byte_count=0; +static int read_byte_count; /** * sample_raw: diff -urN -X dontdiff linux/drivers/char/pc_keyb.c bss/drivers/char/pc_keyb.c --- linux/drivers/char/pc_keyb.c Mon Aug 28 20:06:33 2000 +++ bss/drivers/char/pc_keyb.c Thu Oct 5 22:56:34 2000 @@ -69,9 +69,9 @@ static unsigned char handle_kbd_event(void); /* used only by send_data - set by keyboard_interrupt */ -static volatile unsigned char reply_expected = 0; -static volatile unsigned char acknowledge = 0; -static volatile unsigned char resend = 0; +static volatile unsigned char reply_expected; +static volatile unsigned char acknowledge; +static volatile unsigned char resend; #if defined CONFIG_PSMOUSE @@ -84,9 +84,9 @@ #define AUX_RECONNECT 170 /* scancode when ps2 device is plugged (back) in */ static struct aux_queue *queue; /* Mouse data buffer. */ -static int aux_count = 0; +static int aux_count; /* used when we send commands to the mouse that expect an ACK. */ -static unsigned char mouse_reply_expected = 0; +static unsigned char mouse_reply_expected; #define AUX_INTS_OFF (KBD_MODE_KCC | KBD_MODE_DISABLE_MOUSE | KBD_MODE_SYS | KBD_MODE_KBD_INT) #define AUX_INTS_ON (KBD_MODE_KCC | KBD_MODE_SYS | KBD_MODE_MOUSE_INT | KBD_MODE_KBD_INT) @@ -291,7 +291,7 @@ int pckbd_translate(unsigned char scancode, unsigned char *keycode, char raw_mode) { - static int prev_scancode = 0; + static int prev_scancode; /* special prefix scancodes.. */ if (scancode == 0xe0 || scancode == 0xe1) { diff -urN -X dontdiff linux/drivers/char/ppdev.c bss/drivers/char/ppdev.c --- linux/drivers/char/ppdev.c Wed Sep 27 21:53:52 2000 +++ bss/drivers/char/ppdev.c Thu Oct 5 22:16:57 2000 @@ -595,7 +595,7 @@ release: pp_release, }; -static devfs_handle_t devfs_handle = NULL; +static devfs_handle_t devfs_handle; static int __init ppdev_init (void) { diff -urN -X dontdiff linux/drivers/char/qpmouse.c bss/drivers/char/qpmouse.c --- linux/drivers/char/qpmouse.c Tue Sep 19 16:01:34 2000 +++ bss/drivers/char/qpmouse.c Thu Oct 5 23:10:52 2000 @@ -110,8 +110,8 @@ #define QP_IRQ 12 -static int qp_present = 0; -static int qp_count = 0; +static int qp_present; +static int qp_count; static int qp_data = QP_DATA; static int qp_status = QP_STATUS; diff -urN -X dontdiff linux/drivers/char/random.c bss/drivers/char/random.c --- linux/drivers/char/random.c Tue Jul 18 23:58:13 2000 +++ bss/drivers/char/random.c Thu Oct 5 22:49:05 2000 @@ -763,7 +763,7 @@ void add_keyboard_randomness(unsigned char scancode) { - static unsigned char last_scancode = 0; + static unsigned char last_scancode; /* ignore autorepeat (multiple key down w/o key up) */ if (scancode != last_scancode) { last_scancode = scancode; @@ -1998,8 +1998,8 @@ __u32 secure_tcpv6_sequence_number(__u32 *saddr, __u32 *daddr, __u16 sport, __u16 dport) { - static __u32 rekey_time = 0; - static __u32 count = 0; + static __u32 rekey_time; + static __u32 count; static __u32 secret[12]; struct timeval tv; __u32 seq; @@ -2027,7 +2027,7 @@ __u32 secure_ipv6_id(__u32 *daddr) { - static time_t rekey_time = 0; + static time_t rekey_time; static __u32 secret[12]; time_t t; @@ -2050,8 +2050,8 @@ __u32 secure_tcp_sequence_number(__u32 saddr, __u32 daddr, __u16 sport, __u16 dport) { - static __u32 rekey_time = 0; - static __u32 count = 0; + static __u32 rekey_time; + static __u32 count; static __u32 secret[12]; struct timeval tv; __u32 seq; @@ -2105,7 +2105,7 @@ */ __u32 secure_ip_id(__u32 daddr) { - static time_t rekey_time = 0; + static time_t rekey_time; static __u32 secret[12]; time_t t; @@ -2144,7 +2144,7 @@ #define COOKIEBITS 24 /* Upper bits store count */ #define COOKIEMASK (((__u32)1 << COOKIEBITS) - 1) -static int syncookie_init = 0; +static int syncookie_init; static __u32 syncookie_secret[2][16-3+HASH_BUFFER_SIZE]; __u32 secure_tcp_syn_cookie(__u32 saddr, __u32 daddr, __u16 sport, diff -urN -X dontdiff linux/drivers/char/rio/rio_linux.c bss/drivers/char/rio/rio_linux.c --- linux/drivers/char/rio/rio_linux.c Fri Aug 11 22:51:33 2000 +++ bss/drivers/char/rio/rio_linux.c Thu Oct 5 23:06:15 2000 @@ -211,7 +211,7 @@ static struct tty_driver rio_driver, rio_callout_driver; static struct tty_driver rio_driver2, rio_callout_driver2; -static struct tty_struct * rio_table[RIO_NPORTS] = { NULL, }; +static struct tty_struct * rio_table[RIO_NPORTS]; static struct termios ** rio_termios; static struct termios ** rio_termios_locked; @@ -223,9 +223,9 @@ struct rio_port *rio_ports; int rio_refcount; -int rio_initialized = 0; -int rio_nports = 0; -int rio_debug = 0; +int rio_initialized; +int rio_nports; +int rio_debug; /* You can have the driver poll your card. diff -urN -X dontdiff linux/drivers/char/riscom8.c bss/drivers/char/riscom8.c --- linux/drivers/char/riscom8.c Thu Oct 28 18:42:02 1999 +++ bss/drivers/char/riscom8.c Thu Oct 5 23:01:38 2000 @@ -82,13 +82,13 @@ #define RISCOM_TYPE_NORMAL 1 #define RISCOM_TYPE_CALLOUT 2 -static struct riscom_board * IRQ_to_board[16] = { NULL, } ; +static struct riscom_board * IRQ_to_board[16]; static struct tty_driver riscom_driver, riscom_callout_driver; -static int riscom_refcount = 0; -static struct tty_struct * riscom_table[RC_NBOARD * RC_NPORT] = { NULL, }; -static struct termios * riscom_termios[RC_NBOARD * RC_NPORT] = { NULL, }; -static struct termios * riscom_termios_locked[RC_NBOARD * RC_NPORT] = { NULL, }; -static unsigned char * tmp_buf = NULL; +static int riscom_refcount; +static struct tty_struct * riscom_table[RC_NBOARD * RC_NPORT]; +static struct termios * riscom_termios[RC_NBOARD * RC_NPORT]; +static struct termios * riscom_termios_locked[RC_NBOARD * RC_NPORT]; +static unsigned char * tmp_buf; static DECLARE_MUTEX(tmp_buf_sem); static unsigned long baud_table[] = { @@ -103,9 +103,7 @@ { 0, RC_IOBASE4, 0, }, }; -static struct riscom_port rc_port[RC_NBOARD * RC_NPORT] = { - { 0, }, -}; +static struct riscom_port rc_port[RC_NBOARD * RC_NPORT]; /* RISCom/8 I/O ports addresses (without address translation) */ static unsigned short rc_ioport[] = { diff -urN -X dontdiff linux/drivers/char/rocket.c bss/drivers/char/rocket.c --- linux/drivers/char/rocket.c Sun Sep 3 19:43:18 2000 +++ bss/drivers/char/rocket.c Thu Oct 5 22:57:09 2000 @@ -154,26 +154,26 @@ static void rp_flush_buffer(struct tty_struct *tty); static struct tty_driver rocket_driver, callout_driver; -static int rocket_refcount = 0; +static int rocket_refcount; -static int rp_num_ports_open = 0; +static int rp_num_ports_open; static struct timer_list rocket_timer; -unsigned long board1 = 0; -unsigned long board2 = 0; -unsigned long board3 = 0; -unsigned long board4 = 0; -unsigned long controller = 0; -unsigned long support_low_speed = 0; +unsigned long board1; +unsigned long board2; +unsigned long board3; +unsigned long board4; +unsigned long controller; +unsigned long support_low_speed; int rp_baud_base = 460800; static unsigned long rcktpt_io_addr[NUM_BOARDS]; static int max_board; #ifdef TIME_STAT -static unsigned long long time_stat = 0; -static unsigned long time_stat_short = 0; -static unsigned long time_stat_long = 0; -static unsigned long time_counter = 0; +static unsigned long long time_stat; +static unsigned long time_stat_short; +static unsigned long time_stat_long; +static unsigned long time_counter; #endif #if ((LINUX_VERSION_CODE > 0x020111) && defined(MODULE)) diff -urN -X dontdiff linux/drivers/char/sbc60xxwdt.c bss/drivers/char/sbc60xxwdt.c --- linux/drivers/char/sbc60xxwdt.c Mon Oct 2 03:45:29 2000 +++ bss/drivers/char/sbc60xxwdt.c Thu Oct 5 23:22:18 2000 @@ -104,9 +104,9 @@ static void wdt_timer_ping(unsigned long); static struct timer_list timer; -static unsigned long next_heartbeat = 0; -static int wdt_is_open = 0; -static int wdt_expect_close = 0; +static unsigned long next_heartbeat; +static int wdt_is_open; +static int wdt_expect_close; /* * Whack the dog diff -urN -X dontdiff linux/drivers/char/selection.c bss/drivers/char/selection.c --- linux/drivers/char/selection.c Tue Aug 31 19:30:48 1999 +++ bss/drivers/char/selection.c Thu Oct 5 22:51:42 2000 @@ -36,11 +36,11 @@ /* Variables for selection control. */ /* Use a dynamic buffer, instead of static (Dec 1994) */ - int sel_cons = 0; /* must not be disallocated */ + int sel_cons; /* must not be disallocated */ static volatile int sel_start = -1; /* cleared by clear_selection */ static int sel_end; -static int sel_buffer_lth = 0; -static char *sel_buffer = NULL; +static int sel_buffer_lth; +static char *sel_buffer; /* clear_selection, highlight and highlight_pointer can be called from interrupt (via scrollback/front) */ diff -urN -X dontdiff linux/drivers/char/serial.c bss/drivers/char/serial.c --- linux/drivers/char/serial.c Thu Sep 21 21:23:16 2000 +++ bss/drivers/char/serial.c Thu Oct 5 22:52:19 2000 @@ -267,7 +267,7 @@ static int IRQ_timeout[NR_IRQS]; #ifdef CONFIG_SERIAL_CONSOLE static struct console sercons; -static int lsr_break_flag = 0; +static int lsr_break_flag; #endif #if defined(CONFIG_SERIAL_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ) static unsigned long break_pressed; /* break, really ... */ @@ -325,7 +325,7 @@ #define NR_PCI_BOARDS 8 static struct pci_board_inst serial_pci_board[NR_PCI_BOARDS]; -static int serial_pci_board_idx = 0; +static int serial_pci_board_idx; #ifndef IS_PCI_REGION_IOPORT #define IS_PCI_REGION_IOPORT(dev, r) (pci_resource_flags((dev), (r)) & \ @@ -1060,7 +1060,7 @@ */ static void rs_timer(unsigned long dummy) { - static unsigned long last_strobe = 0; + static unsigned long last_strobe; struct async_struct *info; unsigned int i; unsigned long flags; diff -urN -X dontdiff linux/drivers/char/softdog.c bss/drivers/char/softdog.c --- linux/drivers/char/softdog.c Mon Oct 2 03:45:29 2000 +++ bss/drivers/char/softdog.c Thu Oct 5 23:22:35 2000 @@ -58,7 +58,7 @@ static struct timer_list watchdog_ticktock = { function: watchdog_fire, }; -static int timer_alive = 0; +static int timer_alive; /* diff -urN -X dontdiff linux/drivers/char/specialix.c bss/drivers/char/specialix.c --- linux/drivers/char/specialix.c Wed Jul 5 18:56:13 2000 +++ bss/drivers/char/specialix.c Thu Oct 5 23:04:25 2000 @@ -181,11 +181,11 @@ #define SPECIALIX_TYPE_CALLOUT 2 static struct tty_driver specialix_driver, specialix_callout_driver; -static int specialix_refcount = 0; -static struct tty_struct * specialix_table[SX_NBOARD * SX_NPORT] = { NULL, }; -static struct termios * specialix_termios[SX_NBOARD * SX_NPORT] = { NULL, }; -static struct termios * specialix_termios_locked[SX_NBOARD * SX_NPORT] = { NULL, }; -static unsigned char * tmp_buf = NULL; +static int specialix_refcount; +static struct tty_struct * specialix_table[SX_NBOARD * SX_NPORT]; +static struct termios * specialix_termios[SX_NBOARD * SX_NPORT]; +static struct termios * specialix_termios_locked[SX_NBOARD * SX_NPORT]; +static unsigned char * tmp_buf; static DECLARE_MUTEX(tmp_buf_sem); static unsigned long baud_table[] = { @@ -200,9 +200,7 @@ { 0, SX_IOBASE4, 15, }, }; -static struct specialix_port sx_port[SX_NBOARD * SX_NPORT] = { - { 0, }, -}; +static struct specialix_port sx_port[SX_NBOARD * SX_NPORT]; #ifdef SPECIALIX_TIMER @@ -1013,7 +1011,7 @@ long tmp; unsigned char cor1 = 0, cor3 = 0; unsigned char mcor1 = 0, mcor2 = 0; - static int again=0; + static int again; if (!(tty = port->tty) || !tty->termios) return; diff -urN -X dontdiff linux/drivers/char/stallion.c bss/drivers/char/stallion.c --- linux/drivers/char/stallion.c Tue Sep 5 22:03:52 2000 +++ bss/drivers/char/stallion.c Thu Oct 5 22:20:22 2000 @@ -146,7 +146,7 @@ static struct tty_struct *stl_ttys[STL_MAXDEVS]; static struct termios *stl_termios[STL_MAXDEVS]; static struct termios *stl_termioslocked[STL_MAXDEVS]; -static int stl_refcount = 0; +static int stl_refcount; /* * We will need to allocate a temporary write buffer for chars that @@ -192,7 +192,7 @@ * shared with another Stallion board. */ static int stl_gotintrs[STL_MAXBRDS]; -static int stl_numintrs = 0; +static int stl_numintrs; /*****************************************************************************/ @@ -748,7 +748,7 @@ /*****************************************************************************/ -static devfs_handle_t devfs_handle = NULL; +static devfs_handle_t devfs_handle; #ifdef MODULE diff -urN -X dontdiff linux/drivers/char/sx.c bss/drivers/char/sx.c --- linux/drivers/char/sx.c Fri Aug 11 22:51:33 2000 +++ bss/drivers/char/sx.c Thu Oct 5 23:05:34 2000 @@ -309,16 +309,16 @@ static struct tty_driver sx_driver, sx_callout_driver; -static struct tty_struct * sx_table[SX_NPORTS] = { NULL, }; +static struct tty_struct * sx_table[SX_NPORTS]; static struct termios ** sx_termios; static struct termios ** sx_termios_locked; struct sx_board boards[SX_NBOARDS]; struct sx_port *sx_ports; int sx_refcount; -int sx_initialized = 0; -int sx_nports = 0; -int sx_debug = 0; +int sx_initialized; +int sx_nports; +int sx_debug; /* You can have the driver poll your card. @@ -330,7 +330,7 @@ everything will continue to work.... */ int sx_poll = 1; -int sx_slowpoll = 0; +int sx_slowpoll; /* The card limits the number of interrupts per second. At 115k2 "100" should be sufficient. @@ -2077,7 +2077,7 @@ void printheader(void) { - static int header_printed = 0; + static int header_printed; if (!header_printed) { printk (KERN_INFO "Specialix SX driver " diff -urN -X dontdiff linux/drivers/char/sysrq.c bss/drivers/char/sysrq.c --- linux/drivers/char/sysrq.c Tue Aug 1 03:36:10 2000 +++ bss/drivers/char/sysrq.c Thu Oct 5 22:55:20 2000 @@ -34,7 +34,7 @@ int sysrq_enabled = 1; /* Machine specific power off function */ -void (*sysrq_power_off)(void) = NULL; +void (*sysrq_power_off)(void); EXPORT_SYMBOL(sysrq_power_off); diff -urN -X dontdiff linux/drivers/char/tpqic02.c bss/drivers/char/tpqic02.c --- linux/drivers/char/tpqic02.c Thu Jul 13 05:58:42 2000 +++ bss/drivers/char/tpqic02.c Thu Oct 5 23:13:45 2000 @@ -116,7 +116,7 @@ static struct mtconfiginfo qic02_tape_dynconf = /* user settable */ { 0, 0, BOGUS_IRQ, 0, 0, TPQD_DEFAULT_FLAGS, }; -static struct qic02_ccb qic02_tape_ccb = { 0, }; /* private stuff */ +static struct qic02_ccb qic02_tape_ccb; /* private stuff */ #else @@ -127,7 +127,7 @@ # endif #endif /* CONFIG_QIC02_DYNCONF */ -static volatile int ctlbits = 0; /* control reg bits for tape interface */ +static volatile int ctlbits; /* control reg bits for tape interface */ static wait_queue_head_t qic02_tape_transfer; /* sync rw with interrupts */ @@ -149,10 +149,10 @@ static volatile flag status_bytes_wr = NO; /* write FM at close or not */ static volatile flag status_bytes_rd = NO; /* (rd|wr) used for rewinding */ -static volatile unsigned long status_cmd_pending = 0; /* cmd in progress */ +static volatile unsigned long status_cmd_pending; /* cmd in progress */ static volatile flag status_expect_int = NO; /* ready for interrupts */ static volatile flag status_timer_on = NO; /* using time-out */ -static volatile int status_error = 0; /* int handler may detect error */ +static volatile int status_error; /* int handler may detect error */ static volatile flag status_eof_detected = NO; /* end of file */ static volatile flag status_eom_detected = NO; /* end of recorded media */ static volatile flag status_eot_detected = NO; /* end of tape */ @@ -161,7 +161,7 @@ static volatile unsigned long dma_bytes_todo; static volatile unsigned long dma_bytes_done; -static volatile unsigned dma_mode = 0; /* !=0 also means DMA in use */ +static volatile unsigned dma_mode; /* !=0 also means DMA in use */ static flag need_rewind = YES; static kdev_t current_tape_dev; @@ -208,7 +208,7 @@ * must ensure that a large enough buffer is passed to the kernel, in order * to reduce tape repositioning wear and tear. */ -static unsigned long buffaddr = 0; /* physical address of buffer */ +static unsigned long buffaddr; /* physical address of buffer */ /* This translates minor numbers to the corresponding recording format: */ static const char *format_names[] = { diff -urN -X dontdiff linux/drivers/char/tty_io.c bss/drivers/char/tty_io.c --- linux/drivers/char/tty_io.c Mon Sep 18 23:15:22 2000 +++ bss/drivers/char/tty_io.c Thu Oct 5 22:48:05 2000 @@ -1414,7 +1414,7 @@ if ((tty->driver.type == TTY_DRIVER_TYPE_SERIAL) && (tty->driver.subtype == SERIAL_TYPE_CALLOUT) && (tty->count == 1)) { - static int nr_warns = 0; + static int nr_warns; if (nr_warns < 5) { printk(KERN_WARNING "tty_io.c: " "process %d (%s) used obsolete /dev/%s - " diff -urN -X dontdiff linux/drivers/char/vc_screen.c bss/drivers/char/vc_screen.c --- linux/drivers/char/vc_screen.c Fri Jun 30 02:25:50 2000 +++ bss/drivers/char/vc_screen.c Thu Oct 5 22:14:54 2000 @@ -459,7 +459,7 @@ open: vcs_open, }; -static devfs_handle_t devfs_handle = NULL; +static devfs_handle_t devfs_handle; void vcs_make_devfs (unsigned int index, int unregister) { diff -urN -X dontdiff linux/drivers/char/vt.c bss/drivers/char/vt.c --- linux/drivers/char/vt.c Tue Aug 8 23:25:24 2000 +++ bss/drivers/char/vt.c Thu Oct 5 22:55:31 2000 @@ -36,7 +36,7 @@ #include #endif /* CONFIG_FB_COMPAT_XPMAC */ -char vt_dont_switch = 0; +char vt_dont_switch; extern struct tty_driver console_driver; #define VT_IS_IN_USE(i) (console_driver.table[i] && console_driver.table[i]->count) diff -urN -X dontdiff linux/drivers/char/wdt285.c bss/drivers/char/wdt285.c --- linux/drivers/char/wdt285.c Mon Sep 18 23:15:22 2000 +++ bss/drivers/char/wdt285.c Thu Oct 5 23:22:40 2000 @@ -43,7 +43,7 @@ #define FCLK (50*1000*1000) /* 50MHz */ static int soft_margin = TIMER_MARGIN; /* in seconds */ -static int timer_alive = 0; +static int timer_alive; #ifdef ONLY_TESTING /* diff -urN -X dontdiff linux/drivers/char/wdt977.c bss/drivers/char/wdt977.c --- linux/drivers/char/wdt977.c Mon Sep 18 23:15:22 2000 +++ bss/drivers/char/wdt977.c Thu Oct 5 23:22:48 2000 @@ -29,8 +29,8 @@ #define WATCHDOG_MINOR 130 static int timeout = 3; -static int timer_alive = 0; -static int testmode = 0; +static int timer_alive; +static int testmode; /* * Allow only one person to hold it open diff -urN -X dontdiff linux/drivers/ide/ide.c bss/drivers/ide/ide.c --- linux/drivers/ide/ide.c Mon Sep 11 16:42:57 2000 +++ bss/drivers/ide/ide.c Thu Oct 5 22:28:14 2000 @@ -163,12 +163,12 @@ static const byte ide_hwif_to_major[] = { IDE0_MAJOR, IDE1_MAJOR, IDE2_MAJOR, IDE3_MAJOR, IDE4_MAJOR, IDE5_MAJOR, IDE6_MAJOR, IDE7_MAJOR, IDE8_MAJOR, IDE9_MAJOR }; -static int idebus_parameter = 0; /* holds the "idebus=" parameter */ -static int system_bus_speed = 0; /* holds what we think is VESA/PCI bus speed */ +static int idebus_parameter; /* holds the "idebus=" parameter */ +static int system_bus_speed; /* holds what we think is VESA/PCI bus speed */ static int initializing; /* set while initializing built-in drivers */ #ifdef CONFIG_BLK_DEV_IDEPCI -static int ide_scan_direction = 0; /* THIS was formerly 2.2.x pci=reverse */ +static int ide_scan_direction; /* THIS was formerly 2.2.x pci=reverse */ #endif /* CONFIG_BLK_DEV_IDEPCI */ #if defined(__mc68000__) || defined(CONFIG_APUS) @@ -176,14 +176,14 @@ * ide_lock is used by the Atari code to obtain access to the IDE interrupt, * which is shared between several drivers. */ -static int ide_lock = 0; +static int ide_lock; #endif /* __mc68000__ || CONFIG_APUS */ /* * ide_modules keeps track of the available IDE chipset/probe/driver modules. */ -ide_module_t *ide_modules = NULL; -ide_module_t *ide_probe = NULL; +ide_module_t *ide_modules; +ide_module_t *ide_probe; /* * This is declared extern in ide.h, for access by other IDE modules: @@ -1509,7 +1509,7 @@ stat = IN_BYTE(hwif->io_ports[IDE_STATUS_OFFSET]); if (!OK_STAT(stat, READY_STAT, BAD_STAT)) { /* Try to not flood the console with msgs */ - static unsigned long last_msgtime = 0, count = 0; + static unsigned long last_msgtime, count; ++count; if (0 < (signed long)(jiffies - (last_msgtime + HZ))) { last_msgtime = jiffies; @@ -3499,7 +3499,7 @@ /* * Probe module */ -devfs_handle_t ide_devfs_handle = NULL; +devfs_handle_t ide_devfs_handle; EXPORT_SYMBOL(ide_probe); EXPORT_SYMBOL(drive_is_flashcard); @@ -3561,7 +3561,7 @@ */ int __init ide_init (void) { - static char banner_printed = 0; + static char banner_printed; int i; if (!banner_printed) { diff -urN -X dontdiff linux/drivers/ieee1394/raw1394.c bss/drivers/ieee1394/raw1394.c --- linux/drivers/ieee1394/raw1394.c Mon Oct 2 03:53:07 2000 +++ bss/drivers/ieee1394/raw1394.c Thu Oct 5 22:29:31 2000 @@ -42,13 +42,13 @@ #endif -static devfs_handle_t devfs_handle = NULL; +static devfs_handle_t devfs_handle; LIST_HEAD(host_info_list); -static int host_count = 0; +static int host_count; spinlock_t host_info_lock = SPIN_LOCK_UNLOCKED; -static struct hpsb_highlevel *hl_handle = NULL; +static struct hpsb_highlevel *hl_handle; static atomic_t iso_buffer_size; static const int iso_buffer_max = 4 * 1024 * 1024; /* 4 MB */ diff -urN -X dontdiff linux/drivers/input/input.c bss/drivers/input/input.c --- linux/drivers/input/input.c Tue Aug 22 05:50:32 2000 +++ bss/drivers/input/input.c Thu Oct 5 22:30:09 2000 @@ -49,12 +49,12 @@ #define INPUT_MAJOR 13 #define INPUT_DEVICES 256 -static struct input_dev *input_dev = NULL; -static struct input_handler *input_handler = NULL; -static struct input_handler *input_table[8] = { NULL, /* ... */ }; -static devfs_handle_t input_devfs_handle = NULL; -static int input_number = 0; -static long input_devices[NBITS(INPUT_DEVICES)] = { 0, /* ... */ }; +static struct input_dev *input_dev; +static struct input_handler *input_handler; +static struct input_handler *input_table[8]; +static devfs_handle_t input_devfs_handle; +static int input_number; +static long input_devices[NBITS(INPUT_DEVICES)]; void input_event(struct input_dev *dev, unsigned int type, unsigned int code, int value) { diff -urN -X dontdiff linux/drivers/isdn/isdn_common.c bss/drivers/isdn/isdn_common.c --- linux/drivers/isdn/isdn_common.c Mon Aug 21 15:49:03 2000 +++ bss/drivers/isdn/isdn_common.c Thu Oct 5 22:25:06 2000 @@ -46,7 +46,7 @@ /* Debugflags */ #undef ISDN_DEBUG_STATCALLB -isdn_dev *dev = (isdn_dev *) 0; +isdn_dev *dev; static char *isdn_revision = "$Revision: 1.111 $"; @@ -65,7 +65,7 @@ extern char *isdn_v110_revision; #ifdef CONFIG_ISDN_DIVERSION -isdn_divert_if *divert_if = NULL; /* interface to diversion module */ +isdn_divert_if *divert_if; /* interface to diversion module */ #endif CONFIG_ISDN_DIVERSION @@ -2260,7 +2260,7 @@ #ifdef CONFIG_DEVFS_FS -static devfs_handle_t devfs_handle = NULL; +static devfs_handle_t devfs_handle; static void isdn_register_devfs(int k) { diff -urN -X dontdiff linux/drivers/md/md.c bss/drivers/md/md.c --- linux/drivers/md/md.c Wed Sep 27 21:55:04 2000 +++ bss/drivers/md/md.c Thu Oct 5 22:31:36 2000 @@ -60,7 +60,7 @@ # define dprintk(x...) do { } while(0) #endif -static mdk_personality_t *pers[MAX_PERSONALITY] = {NULL, }; +static mdk_personality_t *pers[MAX_PERSONALITY]; /* * Current RAID-1,4,5 parallel reconstruction 'guaranteed speed limit' @@ -105,12 +105,12 @@ static int md_blocksizes[MAX_MD_DEVS]; static int md_hardsect_sizes[MAX_MD_DEVS]; static int md_maxreadahead[MAX_MD_DEVS]; -static mdk_thread_t *md_recovery_thread = NULL; +static mdk_thread_t *md_recovery_thread; -int md_size[MAX_MD_DEVS] = {0, }; +int md_size[MAX_MD_DEVS]; extern struct block_device_operations md_fops; -static devfs_handle_t devfs_handle = NULL; +static devfs_handle_t devfs_handle; static struct gendisk md_gendisk= { @@ -136,7 +136,7 @@ * one! Eg. HSM uses several sub-devices to implement Logical * Volumes. All these sub-devices map to the same mddev. */ -dev_mapping_t mddev_map [MAX_MD_DEVS] = { {NULL, 0}, }; +dev_mapping_t mddev_map[MAX_MD_DEVS]; void add_mddev_mapping (mddev_t * mddev, kdev_t dev, void *data) { diff -urN -X dontdiff linux/drivers/net/3c515.c bss/drivers/net/3c515.c --- linux/drivers/net/3c515.c Tue Jul 11 19:12:23 2000 +++ bss/drivers/net/3c515.c Thu Oct 5 23:31:09 2000 @@ -90,7 +90,7 @@ #define DRIVER_DEBUG 1 /* Some values here only for performance evaluation and path-coverage debugging. */ -static int rx_nocopy = 0, rx_copy = 0, queued_packet = 0; +static int rx_nocopy, rx_copy, queued_packet; /* Number of times to check to see if the Tx FIFO has space, used in some limited cases. */ @@ -364,7 +364,7 @@ 0, 0, 0 }; -static int nopnp = 0; +static int nopnp; #endif static int corkscrew_scan(struct net_device *dev); diff -urN -X dontdiff linux/drivers/net/3c59x.c bss/drivers/net/3c59x.c --- linux/drivers/net/3c59x.c Sat Sep 16 00:28:25 2000 +++ bss/drivers/net/3c59x.c Thu Oct 5 23:32:04 2000 @@ -222,7 +222,7 @@ /* Set iff a MII transceiver on any interface requires mdio preamble. This only set with the original DP83840 on older 3c905 boards, so the extra code size of a per-interface flag is not worthwhile. */ -static char mii_preamble_required = 0; +static char mii_preamble_required; #define PFX "3c59x: " @@ -740,12 +740,12 @@ /* #define dev_alloc_skb dev_alloc_skb_debug */ /* A list of all installed Vortex EISA devices, for removing the driver module. */ -static struct net_device *root_vortex_eisa_dev = NULL; +static struct net_device *root_vortex_eisa_dev; /* Variables to work-around the Compaq PCI BIOS32 problem. */ -static int compaq_ioaddr = 0, compaq_irq = 0, compaq_device_id = 0x5900; +static int compaq_ioaddr, compaq_irq, compaq_device_id = 0x5900; -static int vortex_cards_found = 0; +static int vortex_cards_found; static void vortex_suspend (struct pci_dev *pdev) { @@ -853,7 +853,7 @@ unsigned int eeprom[0x40], checksum = 0; /* EEPROM contents */ int i; struct net_device *dev; - static int printed_version = 0; + static int printed_version; int retval; struct vortex_chip_info * const vci = &vortex_info_tbl[chip_idx]; @@ -1616,7 +1616,7 @@ outw(AckIntr | RxEarly, ioaddr + EL3_CMD); } if (status & StatsFull) { /* Empty statistics. */ - static int DoneDidThat = 0; + static int DoneDidThat; if (vortex_debug > 4) printk(KERN_DEBUG "%s: Updating stats.\n", dev->name); update_stats(ioaddr, dev); @@ -2573,8 +2573,8 @@ }; -static int vortex_have_pci = 0; -static int vortex_have_eisa = 0; +static int vortex_have_pci; +static int vortex_have_eisa; static int __init vortex_init (void) diff -urN -X dontdiff linux/drivers/net/aironet4500_card.c bss/drivers/net/aironet4500_card.c --- linux/drivers/net/aironet4500_card.c Wed Jul 19 00:09:27 2000 +++ bss/drivers/net/aironet4500_card.c Thu Oct 5 23:25:39 2000 @@ -60,7 +60,7 @@ #include -static int reverse_probe =0 ; +static int reverse_probe; static int awc_pci_init(struct net_device * dev, struct pci_dev *pdev, @@ -70,7 +70,7 @@ int awc4500_pci_probe(struct net_device *dev) { int cards_found = 0; - static int pci_index = 0; /* Static, for multiple probe calls. */ + static int pci_index; /* Static, for multiple probe calls. */ u8 pci_irq_line = 0; // int p; @@ -491,7 +491,7 @@ int awc4500_isa_probe(struct net_device *dev) { // int cards_found = 0; -// static int isa_index = 0; /* Static, for multiple probe calls. */ +// static int isa_index; /* Static, for multiple probe calls. */ int isa_irq_line = 0; int isa_ioaddr = 0; // int p; diff -urN -X dontdiff linux/drivers/net/aironet4500_core.c bss/drivers/net/aironet4500_core.c --- linux/drivers/net/aironet4500_core.c Fri Sep 22 22:21:16 2000 +++ bss/drivers/net/aironet4500_core.c Thu Oct 5 23:25:14 2000 @@ -45,8 +45,8 @@ int sleep_before_command = 1; int bap_sleep_before_write= 1; int sleep_in_command = 1; -int both_bap_lock =0; /* activated at awc_init in this */ -int bap_setup_spinlock =0; /* file if numcpu >1 */ +int both_bap_lock; /* activated at awc_init in this */ +int bap_setup_spinlock; /* file if numcpu >1 */ EXPORT_SYMBOL(bap_sleep); EXPORT_SYMBOL(bap_sleep_after_setup); @@ -1386,7 +1386,7 @@ */ -int parse_not_8023= 0; +int parse_not_8023; void awc_802_11_router_rx(struct net_device * dev,struct awc_fid * rx_buff){ @@ -2539,25 +2539,25 @@ static const char *aironet4500_core_version = "aironet4500.c v0.1 1/1/99 Elmer Joandi, elmer@ylenurme.ee.\n"; -struct net_device * aironet4500_devices[MAX_AWCS] = {NULL,NULL,NULL,NULL}; +struct net_device * aironet4500_devices[MAX_AWCS]; -int awc_debug = 0; // 0xffffff; -static int p802_11_send = 0; // 1 +int awc_debug; // 0xffffff; +static int p802_11_send; // 1 -static int awc_process_tx_results = 0; +static int awc_process_tx_results; int tx_queue_len = 10; -int tx_rate = 0; +int tx_rate; int channel = 5; -//static int tx_full_rate = 0; +//static int tx_full_rate; int max_mtu = 2312; -int adhoc = 0; +int adhoc; int large_buff_mem = 1700 * 10; int small_buff_no = 20; -int awc_full_stats = 0; -char SSID[33] = {0}; -int master= 0; -int slave = 0; -int awc_simple_bridge = 0; +int awc_full_stats; +char SSID[33]; +int master; +int slave; +int awc_simple_bridge; // int debug =0; #if LINUX_VERSION_CODE >= 0x20100 @@ -3029,7 +3029,7 @@ } -long long last_tx_q_hack = 0; +long long last_tx_q_hack; int direction = 1; int awc_start_xmit(struct sk_buff *skb, struct net_device *dev) { @@ -3213,8 +3213,8 @@ -int (* awc_proc_set_fun) (int) = NULL; -int (* awc_proc_unset_fun) (int) = NULL; +int (* awc_proc_set_fun) (int); +int (* awc_proc_unset_fun) (int); int awc_register_proc(int (*awc_proc_set_device)(int),int (*awc_proc_unset_device)(int)){ diff -urN -X dontdiff linux/drivers/net/arlan.c bss/drivers/net/arlan.c --- linux/drivers/net/arlan.c Tue Jul 11 19:12:23 2000 +++ bss/drivers/net/arlan.c Thu Oct 5 23:26:40 2000 @@ -11,7 +11,7 @@ static const char *arlan_version = "C.Jennigs 97 & Elmer.Joandi@ut.ee Oct'98, http://www.ylenurme.ee/~elmer/655/"; struct net_device *arlan_device[MAX_ARLANS]; -int last_arlan = 0; +int last_arlan; static int SID = SIDUNKNOWN; static int radioNodeId = radioNodeIdUNKNOWN; @@ -26,22 +26,22 @@ static int channelSet = channelSetUNKNOWN; static int systemId = systemIdUNKNOWN; static int registrationMode = registrationModeUNKNOWN; -static int keyStart = 0; -static int tx_delay_ms = 0; +static int keyStart; +static int tx_delay_ms; static int retries = 5; static int async = 1; static int tx_queue_len = 1; -static int arlan_EEPROM_bad = 0; -int arlan_entry_and_exit_debug = 0; +static int arlan_EEPROM_bad; +int arlan_entry_and_exit_debug; #ifdef ARLAN_DEBUGING -static int arlan_entry_debug = 0; -static int arlan_exit_debug = 0; +static int arlan_entry_debug; +static int arlan_exit_debug; static int testMemory = testMemoryUNKNOWN; static int irq = irqUNKNOWN; static int txScrambled = 1; -static int mdebug = 0; +static int mdebug; #endif #if LINUX_VERSION_CODE > 0x20100 @@ -87,7 +87,7 @@ #endif struct arlan_conf_stru arlan_conf[MAX_ARLANS]; -int arlans_found = 0; +int arlans_found; static int arlan_probe_here(struct net_device *dev, int ioaddr); static int arlan_open(struct net_device *dev); diff -urN -X dontdiff linux/drivers/net/daynaport.c bss/drivers/net/daynaport.c --- linux/drivers/net/daynaport.c Mon Jun 19 21:30:57 2000 +++ bss/drivers/net/daynaport.c Thu Oct 5 23:32:17 2000 @@ -25,7 +25,7 @@ static const char *version = "daynaport.c: v0.02 1999-05-17 Alan Cox (Alan.Cox@linux.org) and others\n"; -static int version_printed = 0; +static int version_printed; #include #include diff -urN -X dontdiff linux/drivers/net/depca.c bss/drivers/net/depca.c --- linux/drivers/net/depca.c Wed Jul 19 00:09:27 2000 +++ bss/drivers/net/depca.c Thu Oct 5 23:08:33 2000 @@ -463,12 +463,12 @@ static u_char de2xx_irq[] __initdata = {5,9,10,11,15,0}; static u_char de422_irq[] __initdata = {5,9,10,11,0}; static u_char *depca_irq; -static int autoprobed = 0, loading_module = 0; +static int autoprobed, loading_module; #endif /* MODULE */ static char name[DEPCA_STRLEN]; -static int num_depcas = 0, num_eth = 0; -static int mem=0; /* For loadable module assignment +static int num_depcas, num_eth; +static int mem; /* For loadable module assignment use insmod mem=0x????? .... */ static char *adapter_name = '\0'; /* If no PROM when loadable module use insmod adapter_name=DE??? ... diff -urN -X dontdiff linux/drivers/net/e2100.c bss/drivers/net/e2100.c --- linux/drivers/net/e2100.c Mon Jun 19 21:30:58 2000 +++ bss/drivers/net/e2100.c Thu Oct 5 23:09:00 2000 @@ -390,10 +390,10 @@ }, }; -static int io[MAX_E21_CARDS] = { 0, }; -static int irq[MAX_E21_CARDS] = { 0, }; -static int mem[MAX_E21_CARDS] = { 0, }; -static int xcvr[MAX_E21_CARDS] = { 0, }; /* choose int. or ext. xcvr */ +static int io[MAX_E21_CARDS]; +static int irq[MAX_E21_CARDS]; +static int mem[MAX_E21_CARDS]; +static int xcvr[MAX_E21_CARDS]; /* choose int. or ext. xcvr */ MODULE_PARM(io, "1-" __MODULE_STRING(MAX_E21_CARDS) "i"); MODULE_PARM(irq, "1-" __MODULE_STRING(MAX_E21_CARDS) "i"); diff -urN -X dontdiff linux/drivers/net/eepro100.c bss/drivers/net/eepro100.c --- linux/drivers/net/eepro100.c Thu Sep 21 05:57:26 2000 +++ bss/drivers/net/eepro100.c Thu Oct 5 23:33:30 2000 @@ -34,12 +34,12 @@ /* A few user-configurable values that apply to all boards. First set is undocumented and spelled per Intel recommendations. */ -static int congenb = 0; /* Enable congestion control in the DP83840. */ +static int congenb; /* Enable congestion control in the DP83840. */ static int txfifo = 8; /* Tx FIFO threshold in 4 byte units, 0-15 */ static int rxfifo = 8; /* Rx FIFO threshold, default 32 bytes. */ /* Tx/Rx DMA burst length, 0-127, 0 == no preemption, tx==128 -> disabled. */ static int txdmacount = 128; -static int rxdmacount = 0; +static int rxdmacount; /* Set the copy breakpoint for the copy-only-tiny-buffer Rx method. Lower values use more memory, but are faster. */ @@ -611,9 +611,9 @@ unsigned long ioaddr; int irq; int acpi_idle_state = 0, pm; - static int cards_found = 0; + static int cards_found; - static int did_version = 0; /* Already printed version info. */ + static int did_version; /* Already printed version info. */ if (speedo_debug > 0 && did_version++ == 0) printk(version); diff -urN -X dontdiff linux/drivers/net/es3210.c bss/drivers/net/es3210.c --- linux/drivers/net/es3210.c Mon Jun 19 21:30:58 2000 +++ bss/drivers/net/es3210.c Thu Oct 5 23:09:18 2000 @@ -388,9 +388,9 @@ }, }; -static int io[MAX_ES_CARDS] = { 0, }; -static int irq[MAX_ES_CARDS] = { 0, }; -static int mem[MAX_ES_CARDS] = { 0, }; +static int io[MAX_ES_CARDS]; +static int irq[MAX_ES_CARDS]; +static int mem[MAX_ES_CARDS]; MODULE_PARM(io, "1-" __MODULE_STRING(MAX_ES_CARDS) "i"); MODULE_PARM(irq, "1-" __MODULE_STRING(MAX_ES_CARDS) "i"); diff -urN -X dontdiff linux/drivers/net/irda/nsc-ircc.c bss/drivers/net/irda/nsc-ircc.c --- linux/drivers/net/irda/nsc-ircc.c Wed Jul 5 18:56:13 2000 +++ bss/drivers/net/irda/nsc-ircc.c Thu Oct 5 23:03:34 2000 @@ -74,7 +74,7 @@ /* Module parameters */ static int qos_mtt_bits = 0x07; /* 1 ms or more */ -static int dongle_id = 0; +static int dongle_id; /* Use BIOS settions by default, but user may supply module parameters */ static unsigned int io[] = { ~0, ~0, ~0, ~0 }; diff -urN -X dontdiff linux/drivers/net/lne390.c bss/drivers/net/lne390.c --- linux/drivers/net/lne390.c Sun Sep 17 17:49:42 2000 +++ bss/drivers/net/lne390.c Thu Oct 5 23:09:31 2000 @@ -382,9 +382,9 @@ }, }; -static int io[MAX_LNE_CARDS] = { 0, }; -static int irq[MAX_LNE_CARDS] = { 0, }; -static int mem[MAX_LNE_CARDS] = { 0, }; +static int io[MAX_LNE_CARDS]; +static int irq[MAX_LNE_CARDS]; +static int mem[MAX_LNE_CARDS]; MODULE_PARM(io, "1-" __MODULE_STRING(MAX_LNE_CARDS) "i"); MODULE_PARM(irq, "1-" __MODULE_STRING(MAX_LNE_CARDS) "i"); diff -urN -X dontdiff linux/drivers/net/ne3210.c bss/drivers/net/ne3210.c --- linux/drivers/net/ne3210.c Mon Jun 19 21:30:59 2000 +++ bss/drivers/net/ne3210.c Thu Oct 5 23:09:41 2000 @@ -369,9 +369,9 @@ }, }; -static int io[MAX_NE3210_CARDS] = { 0, }; -static int irq[MAX_NE3210_CARDS] = { 0, }; -static int mem[MAX_NE3210_CARDS] = { 0, }; +static int io[MAX_NE3210_CARDS]; +static int irq[MAX_NE3210_CARDS]; +static int mem[MAX_NE3210_CARDS]; MODULE_PARM(io, "1-" __MODULE_STRING(MAX_NE3210_CARDS) "i"); MODULE_PARM(irq, "1-" __MODULE_STRING(MAX_NE3210_CARDS) "i"); diff -urN -X dontdiff linux/drivers/net/pcmcia/3c574_cs.c bss/drivers/net/pcmcia/3c574_cs.c --- linux/drivers/net/pcmcia/3c574_cs.c Sat Sep 2 08:15:37 2000 +++ bss/drivers/net/pcmcia/3c574_cs.c Thu Oct 5 23:27:08 2000 @@ -117,7 +117,7 @@ static int max_interrupt_work = 32; /* Force full duplex modes? */ -static int full_duplex = 0; +static int full_duplex; /* To minimize the size of the driver source and make the driver more readable not all constants are symbolically defined. diff -urN -X dontdiff linux/drivers/net/pcmcia/xircom_tulip_cb.c bss/drivers/net/pcmcia/xircom_tulip_cb.c --- linux/drivers/net/pcmcia/xircom_tulip_cb.c Sun Sep 17 17:41:29 2000 +++ bss/drivers/net/pcmcia/xircom_tulip_cb.c Thu Oct 5 23:28:00 2000 @@ -28,9 +28,9 @@ #define MAX_UNITS 8 /* Used to pass the full-duplex flag, etc. */ -static int full_duplex[MAX_UNITS] = {0, }; -static int options[MAX_UNITS] = {0, }; -static int mtu[MAX_UNITS] = {0, }; /* Jumbo MTU for interfaces. */ +static int full_duplex[MAX_UNITS]; +static int options[MAX_UNITS]; +static int mtu[MAX_UNITS]; /* Jumbo MTU for interfaces. */ /* The possible media types that can be set in options[] are: */ static const char * const medianame[] = { @@ -506,12 +506,12 @@ struct net_device *dev, long ioaddr, int irq, int chip_idx, int board_idx) { - static int did_version = 0; /* Already printed version info. */ + static int did_version; /* Already printed version info. */ struct tulip_private *tp; /* See note below on the multiport cards. */ static unsigned char last_phys_addr[6] = {0x00, 'L', 'i', 'n', 'u', 'x'}; - static int last_irq = 0; - static int multiport_cnt = 0; /* For four-port boards w/one EEPROM */ + static int last_irq; + static int multiport_cnt; /* For four-port boards w/one EEPROM */ u8 chip_rev; int i; unsigned short sum; @@ -913,9 +913,9 @@ static void parse_eeprom(struct net_device *dev) { /* The last media info list parsed, for multiport boards. */ - static struct mediatable *last_mediatable = NULL; - static unsigned char *last_ee_data = NULL; - static int controller_index = 0; + static struct mediatable *last_mediatable; + static unsigned char *last_ee_data; + static int controller_index; struct tulip_private *tp = (struct tulip_private *)dev->priv; long ioaddr = dev->base_addr; unsigned char *ee_data = tp->eeprom; @@ -3074,7 +3074,7 @@ static int __devinit tulip_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) { struct net_device *dev; - static int board_idx = 0; + static int board_idx; printk(KERN_INFO "tulip_attach(%s)\n", pdev->slot_name); diff -urN -X dontdiff linux/drivers/net/pcnet32.c bss/drivers/net/pcnet32.c --- linux/drivers/net/pcnet32.c Mon Jun 19 21:30:56 2000 +++ bss/drivers/net/pcnet32.c Thu Oct 5 23:32:50 2000 @@ -42,7 +42,7 @@ static int pcnet32_debug = 1; static int tx_start = 1; /* Mapping -- 0:20, 1:64, 2:128, 3:~220 (depends on chip vers) */ -static struct net_device *pcnet32_dev = NULL; +static struct net_device *pcnet32_dev; static const int max_interrupt_work = 80; static const int rx_copybreak = 200; @@ -83,8 +83,8 @@ }; #define MAX_UNITS 8 -static int options[MAX_UNITS] = {0, }; -static int full_duplex[MAX_UNITS] = {0, }; +static int options[MAX_UNITS]; +static int full_duplex[MAX_UNITS]; /* * Theory of Operation @@ -476,7 +476,7 @@ static int __init pcnet32_probe_pci(struct pci_dev *pdev, const struct pci_device_id *ent) { - static int card_idx = 0; + static int card_idx; long ioaddr; int err = 0; diff -urN -X dontdiff linux/drivers/net/ppp_generic.c bss/drivers/net/ppp_generic.c --- linux/drivers/net/ppp_generic.c Thu Jul 13 05:58:43 2000 +++ bss/drivers/net/ppp_generic.c Thu Oct 5 22:10:18 2000 @@ -709,7 +709,7 @@ #define PPP_MAJOR 108 -static devfs_handle_t devfs_handle = NULL; +static devfs_handle_t devfs_handle; /* Called at boot time if ppp is compiled into the kernel, or at module load time (from init_module) if compiled as a module. */ diff -urN -X dontdiff linux/drivers/net/pppox.c bss/drivers/net/pppox.c --- linux/drivers/net/pppox.c Fri Sep 22 22:21:16 2000 +++ bss/drivers/net/pppox.c Thu Oct 5 23:25:58 2000 @@ -36,7 +36,7 @@ #include #include -static struct pppox_proto *proto[PX_MAX_PROTO+1] = { NULL, }; +static struct pppox_proto *proto[PX_MAX_PROTO+1]; int register_pppox_proto(int proto_num, struct pppox_proto *pp) { diff -urN -X dontdiff linux/drivers/net/rclanmtl.c bss/drivers/net/rclanmtl.c --- linux/drivers/net/rclanmtl.c Wed Dec 8 23:17:55 1999 +++ bss/drivers/net/rclanmtl.c Thu Oct 5 23:30:30 2000 @@ -311,14 +311,7 @@ ** Indexed by a zero based (0-31) interface number. */ #define MAX_ADAPTERS 32 -static PPAB PCIAdapterBlock[MAX_ADAPTERS] = -{ - NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL -}; - +static PPAB PCIAdapterBlock[MAX_ADAPTERS]; /* ** typedef NICSTAT diff -urN -X dontdiff linux/drivers/net/rcpci45.c bss/drivers/net/rcpci45.c --- linux/drivers/net/rcpci45.c Wed Jul 26 17:09:39 2000 +++ bss/drivers/net/rcpci45.c Thu Oct 5 23:30:13 2000 @@ -135,14 +135,7 @@ #define MAX_ADAPTERS 32 -static PDPA PCIAdapters[MAX_ADAPTERS] = -{ - NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, - NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL -}; - +static PDPA PCIAdapters[MAX_ADAPTERS]; static int RCinit(struct net_device *dev); static int RCscan(void); @@ -163,7 +156,7 @@ /* A list of all installed RC devices, for removing the driver module. */ -static struct net_device *root_RCdev = NULL; +static struct net_device *root_RCdev; static int __init rcpci_init_module (void) { @@ -178,7 +171,7 @@ static int RCscan(void) { int cards_found = 0; - static int pci_index = 0; + static int pci_index; if (!pcibios_present()) return cards_found; @@ -816,7 +809,7 @@ struct net_device *dev = (struct net_device *)data; PDPA pDpa = (PDPA) (dev->priv); int init_status; - static int retry = 0; + static int retry; int post_buffers = MAX_NMBR_RCV_BUFFERS; int count = 0; int requested = 0; diff -urN -X dontdiff linux/drivers/net/skeleton.c bss/drivers/net/skeleton.c --- linux/drivers/net/skeleton.c Wed Jul 19 00:09:27 2000 +++ bss/drivers/net/skeleton.c Thu Oct 5 23:09:53 2000 @@ -662,9 +662,9 @@ 0, 0, 0, NULL, netcard_probe }; static int io = 0x300; -static int irq = 0; -static int dma = 0; -static int mem = 0; +static int irq; +static int dma; +static int mem; int init_module(void) { diff -urN -X dontdiff linux/drivers/net/tokenring/ibmtr.c bss/drivers/net/tokenring/ibmtr.c --- linux/drivers/net/tokenring/ibmtr.c Wed Jul 19 00:52:35 2000 +++ bss/drivers/net/tokenring/ibmtr.c Thu Oct 5 23:10:03 2000 @@ -1861,8 +1861,8 @@ /* 3COM 3C619C supports 8 interrupts, 32 I/O ports */ static struct net_device* dev_ibmtr[IBMTR_MAX_ADAPTERS]; static int io[IBMTR_MAX_ADAPTERS] = {0xa20,0xa24}; -static int irq[IBMTR_MAX_ADAPTERS] = {0,0}; -static int mem[IBMTR_MAX_ADAPTERS] = {0,0}; +static int irq[IBMTR_MAX_ADAPTERS]; +static int mem[IBMTR_MAX_ADAPTERS]; MODULE_PARM(io, "1-" __MODULE_STRING(IBMTR_MAX_ADAPTERS) "i"); MODULE_PARM(irq, "1-" __MODULE_STRING(IBMTR_MAX_ADAPTERS) "i"); diff -urN -X dontdiff linux/drivers/net/tokenring/smctr.c bss/drivers/net/tokenring/smctr.c --- linux/drivers/net/tokenring/smctr.c Wed Jul 19 00:52:35 2000 +++ bss/drivers/net/tokenring/smctr.c Thu Oct 5 23:10:17 2000 @@ -5801,9 +5801,9 @@ #ifdef MODULE static struct net_device* dev_smctr[SMCTR_MAX_ADAPTERS]; -static int io[SMCTR_MAX_ADAPTERS] = { 0, 0 }; -static int irq[SMCTR_MAX_ADAPTERS] = { 0, 0 }; -static int mem[SMCTR_MAX_ADAPTERS] = { 0, 0 }; +static int io[SMCTR_MAX_ADAPTERS]; +static int irq[SMCTR_MAX_ADAPTERS]; +static int mem[SMCTR_MAX_ADAPTERS]; MODULE_PARM(io, "1-" __MODULE_STRING(SMCTR_MAX_ADAPTERS) "i"); MODULE_PARM(irq, "1-" __MODULE_STRING(SMCTR_MAX_ADAPTERS) "i"); diff -urN -X dontdiff linux/drivers/net/tulip/tulip_core.c bss/drivers/net/tulip/tulip_core.c --- linux/drivers/net/tulip/tulip_core.c Mon Sep 18 22:57:01 2000 +++ bss/drivers/net/tulip/tulip_core.c Thu Oct 5 23:28:30 2000 @@ -38,9 +38,9 @@ #define MAX_UNITS 8 /* Used to pass the full-duplex flag, etc. */ -static int full_duplex[MAX_UNITS] = {0, }; -static int options[MAX_UNITS] = {0, }; -static int mtu[MAX_UNITS] = {0, }; /* Jumbo MTU for interfaces. */ +static int full_duplex[MAX_UNITS]; +static int options[MAX_UNITS]; +static int mtu[MAX_UNITS]; /* Jumbo MTU for interfaces. */ /* The possible media types that can be set in options[] are: */ const char * const medianame[] = { @@ -1010,12 +1010,12 @@ static int __devinit tulip_init_one (struct pci_dev *pdev, const struct pci_device_id *ent) { - static int did_version = 0; /* Already printed version info. */ + static int did_version; /* Already printed version info. */ struct tulip_private *tp; /* See note below on the multiport cards. */ static unsigned char last_phys_addr[6] = {0x00, 'L', 'i', 'n', 'u', 'x'}; - static int last_irq = 0; - static int multiport_cnt = 0; /* For four-port boards w/one EEPROM */ + static int last_irq; + static int multiport_cnt; /* For four-port boards w/one EEPROM */ u8 chip_rev; int i, irq; unsigned short sum; diff -urN -X dontdiff linux/drivers/net/wan/cosa.c bss/drivers/net/wan/cosa.c --- linux/drivers/net/wan/cosa.c Mon Oct 2 20:00:16 2000 +++ bss/drivers/net/wan/cosa.c Thu Oct 5 22:09:51 2000 @@ -228,7 +228,7 @@ /* Maybe the following should be allocated dynamically */ static struct cosa_data cosa_cards[MAX_CARDS]; -static int nr_cards = 0; +static int nr_cards; #ifdef COSA_ISA_AUTOPROBE static int io[MAX_CARDS+1] = { 0x220, 0x228, 0x210, 0x218, 0, }; @@ -365,7 +365,7 @@ /* ---------- Initialization stuff ---------- */ -static devfs_handle_t devfs_handle = NULL; +static devfs_handle_t devfs_handle; #ifdef MODULE int init_module(void) @@ -1387,7 +1387,7 @@ */ static int cosa_dma_able(struct channel_data *chan, char *buf, int len) { - static int count = 0; + static int count; unsigned long b = (unsigned long)buf; if (b+len >= MAX_DMA_ADDRESS) return 0; diff -urN -X dontdiff linux/drivers/net/wan/sdlamain.c bss/drivers/net/wan/sdlamain.c --- linux/drivers/net/wan/sdlamain.c Sat Apr 22 00:08:45 2000 +++ bss/drivers/net/wan/sdlamain.c Thu Oct 5 23:11:29 2000 @@ -102,8 +102,8 @@ static char fullname[] = "WANPIPE(tm) Multiprotocol Driver"; static char copyright[] = "(c) 1995-1999 Sangoma Technologies Inc."; static int ncards = CONFIG_WANPIPE_CARDS; -static int active = 0; /* number of active cards */ -static sdla_t* card_array = NULL; /* adapter data space */ +static int active; /* number of active cards */ +static sdla_t* card_array; /* adapter data space */ /* Task queue element for creating a 'thread' */ static struct tq_struct sdla_tq = diff -urN -X dontdiff linux/drivers/net/wd.c bss/drivers/net/wd.c --- linux/drivers/net/wd.c Mon Jun 19 21:42:38 2000 +++ bss/drivers/net/wd.c Thu Oct 5 23:10:32 2000 @@ -447,10 +447,10 @@ }, }; -static int io[MAX_WD_CARDS] = { 0, }; -static int irq[MAX_WD_CARDS] = { 0, }; -static int mem[MAX_WD_CARDS] = { 0, }; -static int mem_end[MAX_WD_CARDS] = { 0, }; /* for non std. mem size */ +static int io[MAX_WD_CARDS]; +static int irq[MAX_WD_CARDS]; +static int mem[MAX_WD_CARDS]; +static int mem_end[MAX_WD_CARDS]; /* for non std. mem size */ MODULE_PARM(io, "1-" __MODULE_STRING(MAX_WD_CARDS) "i"); MODULE_PARM(irq, "1-" __MODULE_STRING(MAX_WD_CARDS) "i"); diff -urN -X dontdiff linux/drivers/sbus/audio/audio.c bss/drivers/sbus/audio/audio.c --- linux/drivers/sbus/audio/audio.c Tue Jul 18 20:29:47 2000 +++ bss/drivers/sbus/audio/audio.c Thu Oct 5 22:26:58 2000 @@ -70,8 +70,8 @@ static void lis_free_elist( strevent_t **list); static void kill_procs( struct strevent *elist, int sig, short e); -static struct sparcaudio_driver *drivers[SPARCAUDIO_MAX_DEVICES] = {NULL}; -static devfs_handle_t devfs_handle = NULL; +static struct sparcaudio_driver *drivers[SPARCAUDIO_MAX_DEVICES]; +static devfs_handle_t devfs_handle; /* This crap to be pulled off into a local include file */ #if defined (LINUX_VERSION_CODE) && LINUX_VERSION_CODE < 0x20100 diff -urN -X dontdiff linux/drivers/sbus/char/bpp.c bss/drivers/sbus/char/bpp.c --- linux/drivers/sbus/char/bpp.c Tue Aug 29 22:09:15 2000 +++ bss/drivers/sbus/char/bpp.c Thu Oct 5 22:25:57 2000 @@ -1015,7 +1015,7 @@ #endif -static devfs_handle_t devfs_handle = NULL; +static devfs_handle_t devfs_handle; #ifdef MODULE int init_module(void) diff -urN -X dontdiff linux/drivers/sbus/char/sunkbd.c bss/drivers/sbus/char/sunkbd.c --- linux/drivers/sbus/char/sunkbd.c Tue Aug 29 22:09:15 2000 +++ bss/drivers/sbus/char/sunkbd.c Thu Oct 5 22:55:03 2000 @@ -80,7 +80,7 @@ extern void scrollback(int); extern void scrollfront(int); -struct l1a_kbd_state l1a_state = { 0, 0 }; +struct l1a_kbd_state l1a_state; #ifndef CONFIG_PCI DECLARE_WAIT_QUEUE_HEAD(keypress_wait); @@ -101,30 +101,30 @@ */ /* shift state counters.. */ -static unsigned char k_down[NR_SHIFT] = {0, }; +static unsigned char k_down[NR_SHIFT]; /* keyboard key bitmap */ -static unsigned long key_down[256/BITS_PER_LONG] = { 0, }; +static unsigned long key_down[256/BITS_PER_LONG]; void push_kbd (int scan); -int kbd_redirected = 0; +int kbd_redirected; -static int dead_key_next = 0; +static int dead_key_next; /* * In order to retrieve the shift_state (for the mouse server), either * the variable must be global, or a new procedure must be created to * return the value. I chose the former way. */ #ifndef CONFIG_PCI -/*static*/ int shift_state = 0; +/*static*/ int shift_state; #endif static int npadch = -1; /* -1 or number assembled on pad */ -static unsigned char diacr = 0; -static char rep = 0; /* flag telling character repeat */ +static unsigned char diacr; +static char rep; /* flag telling character repeat */ struct kbd_struct kbd_table[MAX_NR_CONSOLES]; static struct tty_struct **ttytab; static struct kbd_struct * kbd = kbd_table; -static struct tty_struct * tty = NULL; -static int compose_led_on = 0; +static struct tty_struct * tty; +static int compose_led_on; static int kbd_delay_ticks = HZ / 5; static int kbd_rate_ticks = HZ / 20; diff -urN -X dontdiff linux/drivers/sbus/char/vfc_dev.c bss/drivers/sbus/char/vfc_dev.c --- linux/drivers/sbus/char/vfc_dev.c Thu Sep 7 16:32:01 2000 +++ bss/drivers/sbus/char/vfc_dev.c Thu Oct 5 22:26:25 2000 @@ -43,7 +43,7 @@ #include static struct file_operations vfc_fops; -static devfs_handle_t devfs_handle = NULL; /* For the directory */ +static devfs_handle_t devfs_handle; /* For the directory */ struct vfc_dev **vfc_dev_lst; static char vfcstr[]="vfc"; static unsigned char saa9051_init_array[VFC_SAA9051_NR] = { diff -urN -X dontdiff linux/drivers/scsi/eata.c bss/drivers/scsi/eata.c --- linux/drivers/scsi/eata.c Mon Sep 18 21:36:25 2000 +++ bss/drivers/scsi/eata.c Thu Oct 5 22:35:39 2000 @@ -689,12 +689,12 @@ static void flush_dev(Scsi_Device *, unsigned long, unsigned int, unsigned int); static int do_trace = FALSE; static int setup_done = FALSE; -static int link_statistics = 0; +static int link_statistics; static int tag_mode = TAG_MIXED; static int ext_tran = FALSE; static int rev_scan = TRUE; static int use_new_eh_code = TRUE; -static char *boot_options = NULL; +static char *boot_options; #if defined(CONFIG_SCSI_EATA_TAGGED_QUEUE) static int tagged_comm = TRUE; diff -urN -X dontdiff linux/drivers/scsi/scsi.c bss/drivers/scsi/scsi.c --- linux/drivers/scsi/scsi.c Wed Sep 27 22:10:54 2000 +++ bss/drivers/scsi/scsi.c Thu Oct 5 22:21:29 2000 @@ -74,7 +74,7 @@ #undef USE_STATIC_SCSI_MEMORY -struct proc_dir_entry *proc_scsi = NULL; +struct proc_dir_entry *proc_scsi; #ifdef CONFIG_PROC_FS static int scsi_proc_info(char *buffer, char **start, off_t offset, int length); @@ -98,23 +98,23 @@ /* * Data declarations. */ -unsigned long scsi_pid = 0; -Scsi_Cmnd *last_cmnd = NULL; +unsigned long scsi_pid; +Scsi_Cmnd *last_cmnd; /* Command groups 3 and 4 are reserved and should never be used. */ const unsigned char scsi_command_size[8] = { 6, 10, 10, 12, 12, 12, 10, 10 }; -static unsigned long serial_number = 0; -static Scsi_Cmnd *scsi_bh_queue_head = NULL; -static Scsi_Cmnd *scsi_bh_queue_tail = NULL; +static unsigned long serial_number; +static Scsi_Cmnd *scsi_bh_queue_head; +static Scsi_Cmnd *scsi_bh_queue_tail; /* * Note - the initial logging level can be set here to log events at boot time. * After the system is up, you may enable logging via the /proc interface. */ -unsigned int scsi_logging_level = 0; +unsigned int scsi_logging_level; const char *const scsi_device_types[MAX_SCSI_DEVICE_CODE] = { @@ -716,7 +716,7 @@ return rtn; } -devfs_handle_t scsi_devfs_handle = NULL; +devfs_handle_t scsi_devfs_handle; /* * scsi_do_cmd sends all the commands out to the low-level driver. It diff -urN -X dontdiff linux/drivers/sound/maui_boot.h bss/drivers/sound/maui_boot.h --- linux/drivers/sound/maui_boot.h Thu Jan 1 01:00:00 1970 +++ bss/drivers/sound/maui_boot.h Thu Oct 5 21:14:55 2000 @@ -0,0 +1,2 @@ +static unsigned char * maui_os = NULL; +static int maui_osLen = 0; diff -urN -X dontdiff linux/drivers/sound/pss_boot.h bss/drivers/sound/pss_boot.h --- linux/drivers/sound/pss_boot.h Thu Jan 1 01:00:00 1970 +++ bss/drivers/sound/pss_boot.h Thu Oct 5 21:14:47 2000 @@ -0,0 +1,2 @@ +static unsigned char * pss_synth = NULL; +static int pss_synthLen = 0; diff -urN -X dontdiff linux/drivers/sound/sound_core.c bss/drivers/sound/sound_core.c --- linux/drivers/sound/sound_core.c Mon Sep 25 20:32:54 2000 +++ bss/drivers/sound/sound_core.c Thu Oct 5 22:21:59 2000 @@ -152,7 +152,7 @@ * list. Acquires locks as needed */ -static devfs_handle_t devfs_handle = NULL; +static devfs_handle_t devfs_handle; static int sound_insert_unit(struct sound_unit **list, struct file_operations *fops, int index, int low, int top, const char *name, umode_t mode) { diff -urN -X dontdiff linux/drivers/sound/trident.c bss/drivers/sound/trident.c --- linux/drivers/sound/trident.c Mon Sep 18 22:57:01 2000 +++ bss/drivers/sound/trident.c Thu Oct 5 21:50:17 2000 @@ -306,7 +306,7 @@ DSP_BIND_I2S, DSP_BIND_CENTER_LFE, DSP_BIND_SURR, DSP_BIND_SPDIF }; -static struct trident_card *devs = NULL; +static struct trident_card *devs; static void ali_ac97_set(struct ac97_codec *codec, u8 reg, u16 val); static u16 ali_ac97_get(struct ac97_codec *codec, u8 reg); diff -urN -X dontdiff linux/drivers/sound/trix_boot.h bss/drivers/sound/trix_boot.h --- linux/drivers/sound/trix_boot.h Thu Jan 1 01:00:00 1970 +++ bss/drivers/sound/trix_boot.h Thu Oct 5 21:14:47 2000 @@ -0,0 +1,2 @@ +static unsigned char * trix_boot = NULL; +static int trix_boot_len = 0; diff -urN -X dontdiff linux/drivers/video/fbmem.c bss/drivers/video/fbmem.c --- linux/drivers/video/fbmem.c Mon Oct 2 04:35:16 2000 +++ bss/drivers/video/fbmem.c Thu Oct 5 22:28:57 2000 @@ -618,7 +618,7 @@ int fbidx = MINOR(rdev); if (fbidx >= 32) { int newfbidx = fbidx >> 5; - static int warned = 0; + static int warned; if (!(warned & (1<Name; - static int map_initialized = 0; + static int map_initialized; if (!map_initialized) { int i; diff -urN -X dontdiff linux/fs/inode.c bss/fs/inode.c --- linux/fs/inode.c Mon Oct 2 04:35:16 2000 +++ bss/fs/inode.c Thu Oct 5 22:04:42 2000 @@ -547,7 +547,7 @@ struct inode * get_empty_inode(void) { - static unsigned long last_ino = 0; + static unsigned long last_ino; struct inode * inode; inode = alloc_inode(); diff -urN -X dontdiff linux/fs/lockd/clntlock.c bss/fs/lockd/clntlock.c --- linux/fs/lockd/clntlock.c Fri Sep 22 22:21:18 2000 +++ bss/fs/lockd/clntlock.c Thu Oct 5 22:39:37 2000 @@ -41,7 +41,7 @@ u32 b_status; /* grant callback status */ }; -static struct nlm_wait * nlm_blocked = NULL; +static struct nlm_wait * nlm_blocked; /* * Block on a lock diff -urN -X dontdiff linux/fs/lockd/mon.c bss/fs/lockd/mon.c --- linux/fs/lockd/mon.c Sun Apr 2 23:31:32 2000 +++ bss/fs/lockd/mon.c Thu Oct 5 22:40:28 2000 @@ -24,7 +24,7 @@ /* * Local NSM state */ -u32 nsm_local_state = 0; +u32 nsm_local_state; /* * Common procedure for SM_MON/SM_UNMON calls diff -urN -X dontdiff linux/fs/lockd/svclock.c bss/fs/lockd/svclock.c --- linux/fs/lockd/svclock.c Thu Sep 21 21:38:58 2000 +++ bss/fs/lockd/svclock.c Thu Oct 5 22:39:57 2000 @@ -40,7 +40,7 @@ /* * The list of blocked locks to retry */ -static struct nlm_block * nlm_blocked = NULL; +static struct nlm_block * nlm_blocked; /* * Insert a blocked lock into the global list diff -urN -X dontdiff linux/fs/nfs/dir.c bss/fs/nfs/dir.c --- linux/fs/nfs/dir.c Mon Sep 11 16:38:25 2000 +++ bss/fs/nfs/dir.c Thu Oct 5 22:38:06 2000 @@ -796,7 +796,7 @@ static int nfs_sillyrename(struct inode *dir_i, struct dentry *dentry) { struct dentry *dir = dentry->d_parent; - static unsigned int sillycounter = 0; + static unsigned int sillycounter; const int i_inosize = sizeof(dir_i->i_ino)*2; const int countersize = sizeof(sillycounter)*2; const int slen = strlen(".nfs") + i_inosize + countersize; diff -urN -X dontdiff linux/fs/nfs/read.c bss/fs/nfs/read.c --- linux/fs/nfs/read.c Sun Aug 6 19:43:18 2000 +++ bss/fs/nfs/read.c Thu Oct 5 22:36:55 2000 @@ -54,7 +54,7 @@ # define IS_SWAPFILE(inode) (0) #endif -static kmem_cache_t *nfs_rdata_cachep = NULL; +static kmem_cache_t *nfs_rdata_cachep; static __inline__ struct nfs_read_data *nfs_readdata_alloc(void) { diff -urN -X dontdiff linux/fs/nfs/write.c bss/fs/nfs/write.c --- linux/fs/nfs/write.c Sat Aug 12 20:05:17 2000 +++ bss/fs/nfs/write.c Thu Oct 5 22:37:31 2000 @@ -102,8 +102,8 @@ # define IS_SWAPFILE(inode) (0) #endif -static kmem_cache_t *nfs_page_cachep = NULL; -static kmem_cache_t *nfs_wdata_cachep = NULL; +static kmem_cache_t *nfs_page_cachep; +static kmem_cache_t *nfs_wdata_cachep; static __inline__ struct nfs_page *nfs_page_alloc(void) { @@ -1207,7 +1207,7 @@ /* We can't handle that yet but we check for it nevertheless */ if (resp->count < argp->count && task->tk_status >= 0) { - static unsigned long complain = 0; + static unsigned long complain; if (time_before(complain, jiffies)) { printk(KERN_WARNING "NFS: Server wrote less than requested.\n"); @@ -1227,7 +1227,7 @@ * NFS_FILE_SYNC. We therefore implement this checking * as a dprintk() in order to avoid filling syslog. */ - static unsigned long complain = 0; + static unsigned long complain; if (time_before(complain, jiffies)) { dprintk("NFS: faulty NFSv3 server %s:" diff -urN -X dontdiff linux/fs/nfsd/nfscache.c bss/fs/nfsd/nfscache.c --- linux/fs/nfsd/nfscache.c Thu Jul 6 06:15:27 2000 +++ bss/fs/nfsd/nfscache.c Thu Oct 5 22:39:25 2000 @@ -38,7 +38,7 @@ static struct svc_cacherep * lru_head; static struct svc_cacherep * lru_tail; static struct svc_cacherep * nfscache; -static int cache_initialized = 0; +static int cache_initialized; static int cache_disabled = 1; static int nfsd_cache_append(struct svc_rqst *rqstp, struct svc_buf *data); @@ -215,7 +215,7 @@ /* This should not happen */ if (rp == NULL) { - static int complaints = 0; + static int complaints; printk(KERN_WARNING "nfsd: all repcache entries locked!\n"); if (++complaints > 5) { diff -urN -X dontdiff linux/fs/nfsd/nfsfh.c bss/fs/nfsd/nfsfh.c --- linux/fs/nfsd/nfsfh.c Wed Sep 27 21:54:30 2000 +++ bss/fs/nfsd/nfsfh.c Thu Oct 5 22:38:24 2000 @@ -25,8 +25,8 @@ /* #define NFSD_DEBUG_VERBOSE 1 */ -static int nfsd_nr_verified = 0; -static int nfsd_nr_put = 0; +static int nfsd_nr_verified; +static int nfsd_nr_put; struct nfsd_getdents_callback { diff -urN -X dontdiff linux/fs/nfsd/vfs.c bss/fs/nfsd/vfs.c --- linux/fs/nfsd/vfs.c Mon Sep 25 01:10:45 2000 +++ bss/fs/nfsd/vfs.c Thu Oct 5 22:39:05 2000 @@ -74,8 +74,8 @@ p_rawin; }; -static struct raparms * raparml = NULL; -static struct raparms * raparm_cache = NULL; +static struct raparms * raparml; +static struct raparms * raparm_cache; /* * Look up one component of a pathname. @@ -714,7 +714,7 @@ } if (err >= 0 && stable) { - static unsigned long last_ino = 0; + static unsigned long last_ino; static kdev_t last_dev = NODEV; /* diff -urN -X dontdiff linux/fs/nls/nls_base.c bss/fs/nls/nls_base.c --- linux/fs/nls/nls_base.c Wed Jul 19 06:48:32 2000 +++ bss/fs/nls/nls_base.c Thu Oct 5 22:40:17 2000 @@ -20,7 +20,7 @@ #endif #include -static struct nls_table *tables = (struct nls_table *) NULL; +static struct nls_table *tables; static spinlock_t nls_lock = SPIN_LOCK_UNLOCKED; /* diff -urN -X dontdiff linux/fs/nls/nls_big5.c bss/fs/nls/nls_big5.c --- linux/fs/nls/nls_big5.c Wed Jul 19 06:48:32 2000 +++ bss/fs/nls/nls_big5.c Thu Oct 5 22:41:16 2000 @@ -8,7 +8,7 @@ #include #include -static struct nls_table *p_nls = NULL; +static struct nls_table *p_nls; static struct nls_table table = { "big5", diff -urN -X dontdiff linux/fs/nls/nls_euc-jp.c bss/fs/nls/nls_euc-jp.c --- linux/fs/nls/nls_euc-jp.c Wed Jul 19 06:48:33 2000 +++ bss/fs/nls/nls_euc-jp.c Thu Oct 5 22:41:28 2000 @@ -8,7 +8,7 @@ #include #include -static struct nls_table *p_nls = NULL; +static struct nls_table *p_nls; #define SS2 (0x8E) /* Single Shift 2 */ diff -urN -X dontdiff linux/fs/nls/nls_euc-kr.c bss/fs/nls/nls_euc-kr.c --- linux/fs/nls/nls_euc-kr.c Wed Jul 19 06:48:33 2000 +++ bss/fs/nls/nls_euc-kr.c Thu Oct 5 22:41:38 2000 @@ -8,7 +8,7 @@ #include #include -static struct nls_table *p_nls = NULL; +static struct nls_table *p_nls; static struct nls_table table = { "euc-kr", diff -urN -X dontdiff linux/fs/nls/nls_gb2312.c bss/fs/nls/nls_gb2312.c --- linux/fs/nls/nls_gb2312.c Wed Jul 19 06:48:33 2000 +++ bss/fs/nls/nls_gb2312.c Thu Oct 5 22:41:45 2000 @@ -8,7 +8,7 @@ #include #include -static struct nls_table *p_nls = NULL; +static struct nls_table *p_nls; static struct nls_table table = { "gb2312", diff -urN -X dontdiff linux/fs/nls/nls_sjis.c bss/fs/nls/nls_sjis.c --- linux/fs/nls/nls_sjis.c Wed Jul 19 06:48:33 2000 +++ bss/fs/nls/nls_sjis.c Thu Oct 5 22:41:52 2000 @@ -8,7 +8,7 @@ #include #include -static struct nls_table *p_nls = NULL; +static struct nls_table *p_nls; static struct nls_table table = { "sjis", diff -urN -X dontdiff linux/fs/ntfs/fs.c bss/fs/ntfs/fs.c --- linux/fs/ntfs/fs.c Fri Aug 11 22:29:02 2000 +++ bss/fs/ntfs/fs.c Thu Oct 5 22:43:02 2000 @@ -416,8 +416,7 @@ #endif }; -static struct inode_operations ntfs_inode_operations_nobmap = { -}; +static struct inode_operations ntfs_inode_operations_nobmap; #ifdef CONFIG_NTFS_RW static int @@ -577,8 +576,7 @@ #endif }; -static struct inode_operations ntfs_inode_operations = { -}; +static struct inode_operations ntfs_inode_operations; static struct file_operations ntfs_dir_operations = { read: generic_read_dir, diff -urN -X dontdiff linux/fs/partitions/check.c bss/fs/partitions/check.c --- linux/fs/partitions/check.c Wed Sep 27 21:39:23 2000 +++ bss/fs/partitions/check.c Thu Oct 5 22:05:47 2000 @@ -338,8 +338,8 @@ devfs_handle_t dir, slave; unsigned int devfs_flags = DEVFS_FL_DEFAULT; char dirname[64], symlink[16]; - static unsigned int disc_counter = 0; - static devfs_handle_t devfs_handle = NULL; + static unsigned int disc_counter; + static devfs_handle_t devfs_handle; if (dev->part[minor].de) return; if ( dev->flags && (dev->flags[devnum] & GENHD_FL_REMOVABLE) ) diff -urN -X dontdiff linux/fs/umsdos/inode.c bss/fs/umsdos/inode.c --- linux/fs/umsdos/inode.c Sun Aug 6 19:43:18 2000 +++ bss/fs/umsdos/inode.c Thu Oct 5 22:42:13 2000 @@ -22,8 +22,8 @@ extern struct dentry_operations umsdos_dentry_operations; -struct dentry *saved_root = NULL; /* Original root if changed */ -struct inode *pseudo_root = NULL; /* Useful to simulate the pseudo DOS */ +struct dentry *saved_root; /* Original root if changed */ +struct inode *pseudo_root; /* Useful to simulate the pseudo DOS */ /* directory. See UMSDOS_readdir_x() */ static struct dentry *check_pseudo_root(struct super_block *); diff -urN -X dontdiff linux/include/asm-i386/floppy.h bss/include/asm-i386/floppy.h --- linux/include/asm-i386/floppy.h Mon Oct 2 20:04:55 2000 +++ bss/include/asm-i386/floppy.h Thu Oct 5 22:44:23 2000 @@ -45,11 +45,11 @@ #define FLOPPY_CAN_FALLBACK_ON_NODMA -static int virtual_dma_count=0; -static int virtual_dma_residue=0; -static char *virtual_dma_addr=0; -static int virtual_dma_mode=0; -static int doing_pdma=0; +static int virtual_dma_count; +static int virtual_dma_residue; +static char *virtual_dma_addr; +static int virtual_dma_mode; +static int doing_pdma; static void floppy_hardint(int irq, void *dev_id, struct pt_regs * regs) { diff -urN -X dontdiff linux/kernel/panic.c bss/kernel/panic.c --- linux/kernel/panic.c Tue Jun 20 22:32:27 2000 +++ bss/kernel/panic.c Thu Oct 5 21:59:18 2000 @@ -22,7 +22,7 @@ int panic_timeout; -struct notifier_block *panic_notifier_list = NULL; +struct notifier_block *panic_notifier_list; static int __init panic_setup(char *str) { diff -urN -X dontdiff linux/kernel/printk.c bss/kernel/printk.c --- linux/kernel/printk.c Wed Jul 5 19:00:21 2000 +++ bss/kernel/printk.c Thu Oct 5 21:59:52 2000 @@ -45,7 +45,7 @@ spinlock_t console_lock = SPIN_LOCK_UNLOCKED; -struct console *console_drivers = NULL; +struct console *console_drivers; static char log_buf[LOG_BUF_LEN]; static unsigned long log_start; static unsigned long logged_chars; diff -urN -X dontdiff linux/kernel/sys.c bss/kernel/sys.c --- linux/kernel/sys.c Mon Sep 11 16:48:53 2000 +++ bss/kernel/sys.c Thu Oct 5 21:58:44 2000 @@ -47,7 +47,7 @@ * and the like. */ -static struct notifier_block *reboot_notifier_list = NULL; +static struct notifier_block *reboot_notifier_list; rwlock_t notifier_lock = RW_LOCK_UNLOCKED; /** diff -urN -X dontdiff linux/kernel/time.c bss/kernel/time.c --- linux/kernel/time.c Fri May 12 19:21:20 2000 +++ bss/kernel/time.c Thu Oct 5 22:00:51 2000 @@ -34,7 +34,7 @@ * The timezone where the local system is located. Used as a default by some * programs who obtain this value by using gettimeofday. */ -struct timezone sys_tz = { 0, 0}; +struct timezone sys_tz; static void do_normal_gettime(struct timeval * tm) { @@ -218,7 +218,7 @@ long pps_stbcnt; /* stability limit exceeded */ /* hook for a loadable hardpps kernel module */ -void (*hardpps_ptr)(struct timeval *) = (void (*)(struct timeval *))0; +void (*hardpps_ptr)(struct timeval *); /* adjtimex mainly allows reading (and writing, if superuser) of * kernel time-keeping variables. used by xntpd. diff -urN -X dontdiff linux/kernel/timer.c bss/kernel/timer.c --- linux/kernel/timer.c Mon Oct 2 03:55:17 2000 +++ bss/kernel/timer.c Thu Oct 5 22:02:28 2000 @@ -164,7 +164,7 @@ spinlock_t timerlist_lock = SPIN_LOCK_UNLOCKED; #ifdef CONFIG_SMP -volatile struct timer_list * volatile running_timer = NULL; +volatile struct timer_list * volatile running_timer; #define timer_enter(t) do { running_timer = t; mb(); } while (0) #define timer_exit() do { running_timer = NULL; } while (0) #define timer_is_running(t) (running_timer == t) diff -urN -X dontdiff linux/net/netlink/netlink_dev.c bss/net/netlink/netlink_dev.c --- linux/net/netlink/netlink_dev.c Thu Jul 13 05:58:44 2000 +++ bss/net/netlink/netlink_dev.c Thu Oct 5 22:08:54 2000 @@ -31,7 +31,7 @@ #include #include -static unsigned open_map = 0; +static unsigned open_map; static struct socket *netlink_user[MAX_LINKS]; /* @@ -178,7 +178,7 @@ release: netlink_release, }; -static devfs_handle_t devfs_handle = NULL; +static devfs_handle_t devfs_handle; static void __init make_devfs_entries (const char *name, int minor) {