diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-10-03 17:34:58 -0400 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2006-10-03 17:34:58 -0400 |
commit | 8d8f3cbe777e014123bfa63f2cebd6eb29032225 (patch) | |
tree | 5ca6abfa5e696d3c792050221c4f7326d676d23f /arch/i386/kernel/cpu/common.c | |
parent | 644c12d7f695c0a30662ac781b0f06f79d7f9bab (diff) |
BUG_ON cleanups in arch/i386
This changes a couple of if() BUG(); constructs to
BUG_ON(); so it can be safely optimized away.
Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Diffstat (limited to 'arch/i386/kernel/cpu/common.c')
-rw-r--r-- | arch/i386/kernel/cpu/common.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/i386/kernel/cpu/common.c b/arch/i386/kernel/cpu/common.c index b2f24d57fddd..d9f3e3c31f05 100644 --- a/arch/i386/kernel/cpu/common.c +++ b/arch/i386/kernel/cpu/common.c | |||
@@ -669,8 +669,7 @@ old_gdt: | |||
669 | */ | 669 | */ |
670 | atomic_inc(&init_mm.mm_count); | 670 | atomic_inc(&init_mm.mm_count); |
671 | current->active_mm = &init_mm; | 671 | current->active_mm = &init_mm; |
672 | if (current->mm) | 672 | BUG_ON(current->mm); |
673 | BUG(); | ||
674 | enter_lazy_tlb(&init_mm, current); | 673 | enter_lazy_tlb(&init_mm, current); |
675 | 674 | ||
676 | load_esp0(t, thread); | 675 | load_esp0(t, thread); |