summaryrefslogtreecommitdiff
path: root/arch/x86/mm/kmemcheck
diff options
context:
space:
mode:
authorVegard Nossum <vegard.nossum@gmail.com>2009-06-22 14:31:53 +0200
committerVegard Nossum <vegard.nossum@gmail.com>2009-07-01 22:28:42 +0200
commit414f3251aa1b4cbd1e070866971eabc004a7dc20 (patch)
tree19a2cf5f72bee77592eb22c7834d9c8efc628c60 /arch/x86/mm/kmemcheck
parenta4a874a906ae69c35df4b712fadbc35b15665355 (diff)
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/kmemcheck')
-rw-r--r--arch/x86/mm/kmemcheck/kmemcheck.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/x86/mm/kmemcheck/kmemcheck.c b/arch/x86/mm/kmemcheck/kmemcheck.c
index 2c55ed098654..5b99004fb4be 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);