summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVegard Nossum <vegard.nossum@gmail.com>2009-06-22 12:31:53 (GMT)
committerVegard Nossum <vegard.nossum@gmail.com>2009-07-01 20:28:42 (GMT)
commit414f3251aa1b4cbd1e070866971eabc004a7dc20 (patch)
tree19a2cf5f72bee77592eb22c7834d9c8efc628c60
parenta4a874a906ae69c35df4b712fadbc35b15665355 (diff)
downloadlinux-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>
-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 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);