diff --git a/arch/x86/kernel/traps.c b/arch/x86/kernel/traps.c
index c320c29255c216b071755c5988a08baf3f127827..f37cee75ab58f87d3c6ac6c0224d9694e946359c 100644
--- a/arch/x86/kernel/traps.c
+++ b/arch/x86/kernel/traps.c
@@ -691,7 +691,7 @@ void math_error(void __user *ip)
 
 	err = swd & ~cwd & 0x3f;
 
-#if CONFIG_X86_32
+#ifdef CONFIG_X86_32
 	if (!err)
 		return;
 #endif