Skip to content

Commit

Permalink
[PATCH] arch/i386/mach-visws/setup.c: remove dummy function calls
Browse files Browse the repository at this point in the history
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 <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Adrian Bunk authored and Linus Torvalds committed Jun 29, 2006
1 parent 7256d81 commit 0e41142
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions arch/i386/mach-visws/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 0e41142

Please sign in to comment.