Browse Source

[PATCH] x86_64: Removing unused function die_if_kernel().

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Jan Beulich 19 years ago
parent
commit
5c617cfa64
1 changed files with 0 additions and 5 deletions
  1. 0 5
      arch/x86_64/kernel/traps.c

+ 0 - 5
arch/x86_64/kernel/traps.c

@@ -399,11 +399,6 @@ void die(const char * str, struct pt_regs * regs, long err)
 	oops_end(flags);
 	do_exit(SIGSEGV); 
 }
-static inline void die_if_kernel(const char * str, struct pt_regs * regs, long err)
-{
-	if (!(regs->eflags & VM_MASK) && (regs->cs == __KERNEL_CS))
-		die(str, regs, err);
-}
 
 void die_nmi(char *str, struct pt_regs *regs)
 {