diff options
author | Vegard Nossum <vegard.nossum@gmail.com> | 2009-06-22 12:31:53 (GMT) |
---|---|---|
committer | Vegard Nossum <vegard.nossum@gmail.com> | 2009-07-01 20:28:42 (GMT) |
commit | 414f3251aa1b4cbd1e070866971eabc004a7dc20 (patch) | |
tree | 19a2cf5f72bee77592eb22c7834d9c8efc628c60 /arch/x86/mm | |
parent | a4a874a906ae69c35df4b712fadbc35b15665355 (diff) | |
download | linux-414f3251aa1b4cbd1e070866971eabc004a7dc20.tar.xz |
kmemcheck: remove useless check
This check is a left-over from ancient times. We now have the equivalent
check much earlier in both the page fault handler and the debug trap
handler (the calls to kmemcheck_active()).
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
Diffstat (limited to 'arch/x86/mm')
-rw-r--r-- | arch/x86/mm/kmemcheck/kmemcheck.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/x86/mm/kmemcheck/kmemcheck.c b/arch/x86/mm/kmemcheck/kmemcheck.c index 2c55ed0..5b99004 100644 --- a/arch/x86/mm/kmemcheck/kmemcheck.c +++ b/arch/x86/mm/kmemcheck/kmemcheck.c @@ -225,9 +225,6 @@ void kmemcheck_hide(struct pt_regs *regs) BUG_ON(!irqs_disabled()); - if (data->balance == 0) - return; - if (unlikely(data->balance != 1)) { kmemcheck_show_all(); kmemcheck_error_save_bug(regs); |