Skip to contentSkip to conversation

2.6.1-mm3 remove null-ilizers

PATCH New Jes Sorensen 1 participant 1 message Jan 14, 2004

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 2.6.1-mm3 remove null-ilizers

Hi,

The following patch removes a couple of null-ilizers of global variables. Not a big deal, but every byte helps in the .data segment ;-)

Cheers,
Jes

fs/bio.c renamed from linux-2.6.1-mm3-boot/fs/bio.c +1 -1
diff -urN -X /usr/people/jes/exclude-linux orig/linux-2.6.1-mm3-boot/fs/bio.c linux-2.6.1-mm3/fs/bio.c
@@ -594,7 +594,7 @@
 
 static DECLARE_WORK(bio_dirty_work, bio_dirty_fn, NULL);
 static spinlock_t bio_dirty_lock = SPIN_LOCK_UNLOCKED;
-static struct bio *bio_dirty_list = NULL;
+static struct bio *bio_dirty_list;
 
 /*
  * This runs in process context
init/main.c renamed from linux-2.6.1-mm3-boot/init/main.c +1 -1
diff -urN -X /usr/people/jes/exclude-linux orig/linux-2.6.1-mm3-boot/init/main.c linux-2.6.1-mm3/init/main.c
@@ -105,7 +105,7 @@
 
 extern void time_init(void);
 /* Default late time init is NULL. archs can override this later. */
-void (*late_time_init)(void) = NULL;
+void (*late_time_init)(void);
 extern void softirq_init(void);
 
 static char *execute_command;
kernel/cpu.c renamed from linux-2.6.1-mm3-boot/kernel/cpu.c +1 -1
diff -urN -X /usr/people/jes/exclude-linux orig/linux-2.6.1-mm3-boot/kernel/cpu.c linux-2.6.1-mm3/kernel/cpu.c
@@ -14,7 +14,7 @@
 /* This protects CPUs going up and down... */
 DECLARE_MUTEX(cpucontrol);
 
-static struct notifier_block *cpu_chain = NULL;
+static struct notifier_block *cpu_chain;
 
 /* Need to know about CPUs going up/down? */
 int register_cpu_notifier(struct notifier_block *nb)
mm/nommu.c renamed from linux-2.6.1-mm3-boot/mm/nommu.c +2 -2
diff -urN -X /usr/people/jes/exclude-linux orig/linux-2.6.1-mm3-boot/mm/nommu.c linux-2.6.1-mm3/mm/nommu.c
@@ -25,12 +25,12 @@
 #include <asm/tlbflush.h>
 
 void *high_memory;
-struct page *mem_map = NULL;
+struct page *mem_map;
 unsigned long max_mapnr;
 unsigned long num_physpages;
 unsigned long askedalloc, realalloc;
 atomic_t vm_committed_space = ATOMIC_INIT(0);
-int sysctl_overcommit_memory = 0; /* default is heuristic overcommit */
+int sysctl_overcommit_memory; /* default is heuristic overcommit */
 int sysctl_overcommit_ratio = 50; /* default is 50% */
 
 /*