Commit 414f3251 authored by Vegard Nossum's avatar Vegard Nossum
Browse files

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: default avatarVegard Nossum <vegard.nossum@gmail.com>
parent a4a874a9
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -225,9 +225,6 @@ void kmemcheck_hide(struct pt_regs *regs)


	BUG_ON(!irqs_disabled());
	BUG_ON(!irqs_disabled());


	if (data->balance == 0)
		return;

	if (unlikely(data->balance != 1)) {
	if (unlikely(data->balance != 1)) {
		kmemcheck_show_all();
		kmemcheck_show_all();
		kmemcheck_error_save_bug(regs);
		kmemcheck_error_save_bug(regs);