aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander van Heukelum <heukelum@mailshack.com>2008-04-06 08:47:00 -0400
committerIngo Molnar <mingo@elte.hu>2008-04-17 11:41:36 -0400
commit03056c88cf65ec8375753900246b36ae1c4b8a33 (patch)
tree165231b99e6d353c32beb42dce90441321930015
parent85bdddec5eaeb2464bf1cad6a17225416e65a8d6 (diff)
x86: remove superfluous initialisation in boot code.
In arch/x86/boot/compressed/misc.c, the variable vidmem is the only variable that ends up in de data segment. It's also superfluous, because the first thing the code does is: if (RM_SCREEN_INFO.orig_video_mode == 7) { vidmem = (char *) 0xb0000; vidport = 0x3b4; } else { vidmem = (char *) 0xb8000; vidport = 0x3d4; } This patch removes the initialisation. Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r--arch/x86/boot/compressed/misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/boot/compressed/misc.c b/arch/x86/boot/compressed/misc.c
index 9470a050f8a4..dad4e699f5a3 100644
--- a/arch/x86/boot/compressed/misc.c
+++ b/arch/x86/boot/compressed/misc.c
@@ -223,7 +223,7 @@ static memptr free_mem_end_ptr;
223#define HEAP_SIZE 0x4000 223#define HEAP_SIZE 0x4000
224#endif 224#endif
225 225
226static char *vidmem = (char *)0xb8000; 226static char *vidmem;
227static int vidport; 227static int vidport;
228static int lines, cols; 228static int lines, cols;
229 229