From: Adrian Bunk Date: Thu, 29 Jun 2006 09:24:30 +0000 (-0700) Subject: [PATCH] arch/i386/mach-visws/setup.c: remove dummy function calls X-Git-Tag: v2.6.18-rc1~403 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e41142bf52002d604e16798dc3f1c28f46cc4b6;p=linux-2.6 [PATCH] arch/i386/mach-visws/setup.c: remove dummy function calls Thankfully, these dummy function calls are no longer required to avoid warnings - if they weren't eliminated as dead code but accidentially executed there would be a guaranteed NULL dereference. Signed-off-by: Adrian Bunk Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/i386/mach-visws/setup.c b/arch/i386/mach-visws/setup.c index 11e83a0e1d..1f84cdb247 100644 --- a/arch/i386/mach-visws/setup.c +++ b/arch/i386/mach-visws/setup.c @@ -177,8 +177,4 @@ char * __init machine_specific_memory_setup(void) add_memory_region(sgivwfb_mem_phys, sgivwfb_mem_size, E820_RESERVED); return "PROM"; - - /* Remove gcc warnings */ - (void) sanitize_e820_map(NULL, NULL); - (void) copy_e820_map(NULL, 0); }