[PATCH 11/13] ppc64 boot: remove global initializers

Olaf Hering olh at suse.de
Mon Oct 10 04:19:43 EST 2005


no need to initialize global variables

Signed-off-by: Olaf Hering <olh at suse.de>

 arch/ppc64/boot/main.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

Index: linux-2.6.14-rc3/arch/ppc64/boot/main.c
===================================================================
--- linux-2.6.14-rc3.orig/arch/ppc64/boot/main.c
+++ linux-2.6.14-rc3/arch/ppc64/boot/main.c
@@ -38,9 +38,9 @@ struct addr_range {
 	unsigned long size;
 	unsigned long memsize;
 };
-static struct addr_range vmlinux = {0, 0, 0};
-static struct addr_range vmlinuz = {0, 0, 0};
-static struct addr_range initrd  = {0, 0, 0};
+static struct addr_range vmlinux;
+static struct addr_range vmlinuz;
+static struct addr_range initrd;
 
 static char scratch[46912];	/* scratch space for gunzip, from zlib_inflate_workspacesize() */
 static char elfheader[256];



More information about the Linuxppc64-dev mailing list