Skip to contentSkip to conversation

x86, crash: Unify ifdef

PATCH New Borislav Petkov 1 participant 1 message Feb 28, 2014 x86

lore
Share & tools
lore

Borislav Petkov

author maintainer
#0 lore raw

PATCH 1/1 x86, crash: Unify ifdef

From: Borislav Petkov <[email protected]>

Merge two back-to-back CONFIG_X86_32 ifdefs into one.

---
 arch/x86/kernel/crash.c | 2 --
 1 file changed, 2 deletions(-)
arch/x86/kernel/crash.c +0 -2
index a57902efe2d5..507de8066594 100644
@@ -57,9 +57,7 @@ static void kdump_nmi_callback(int cpu, struct pt_regs *regs)
 {
 #ifdef CONFIG_X86_32
 	struct pt_regs fixed_regs;
-#endif
 
-#ifdef CONFIG_X86_32
 	if (!user_mode_vm(regs)) {
 		crash_fixup_ss_esp(&fixed_regs, regs);
 		regs = &fixed_regs;
Signature · 1 line
1.9.0