]> git.hungrycats.org Git - linux/commitdiff
[PATCH] remove null-ilizers
authorAndrew Morton <akpm@osdl.org>
Mon, 19 Jan 2004 13:14:19 +0000 (05:14 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Mon, 19 Jan 2004 13:14:19 +0000 (05:14 -0800)
From: Jes Sorensen <jes@trained-monkey.org>

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

fs/bio.c
init/main.c
kernel/cpu.c
mm/nommu.c

index 048e274084bae57a4573da26124357a8cad9e8f1..744bd1217e965c1563691216ba3d6b6853b04a7d 100644 (file)
--- a/fs/bio.c
+++ b/fs/bio.c
@@ -594,7 +594,7 @@ static void bio_dirty_fn(void *data);
 
 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
index 41d1a2931b026ecd6a9e3492b574385914eb059f..4c26b3769e8077af786217de3a818a90549c7fa5 100644 (file)
@@ -105,7 +105,7 @@ int system_running;
 
 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;
index 939fc284029dd1b22f4d6c19f4c0761ee6e8f25a..0652d1871f2fb948d62efee71dcaa637795fa2aa 100644 (file)
@@ -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)
index 2d38a9f89fc05340b15ca84aecda11bc6e0232ee..c940756b49e54504d5f45d34fee042e1cbcbeb3d 100644 (file)
 #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% */
 
 /*