From 3566a584274966282a10b04ffb9f003e20e9e6c8 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Mon, 25 Dec 2023 23:49:57 -0500 Subject: kernel/amd64: machdep: Refactor Signed-off-by: Ian Moffett --- sys/arch/amd64/amd64/machdep.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/arch/amd64/amd64/machdep.c b/sys/arch/amd64/amd64/machdep.c index 0c31985..a9cc916 100644 --- a/sys/arch/amd64/amd64/machdep.c +++ b/sys/arch/amd64/amd64/machdep.c @@ -86,9 +86,7 @@ processor_init(void) /* Indicates what doesn't need to be init anymore */ static uint8_t init_flags = 0; - struct cpu_info *cur_cpu = NULL; - - cur_cpu = this_cpu(); + struct cpu_info *cur_cpu = this_cpu(); interrupts_init(); gdt_load(&g_gdtr); -- cgit v1.2.3