Skip to content

Commit

Permalink
kmemcheck: remove useless check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
vegard committed Jul 1, 2009
1 parent a4a874a commit 414f325
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions arch/x86/mm/kmemcheck/kmemcheck.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 414f325

Please sign in to comment.