]> err.no Git - linux-2.6/commitdiff
BUG_ON() Conversion in fs/exec.c
authorEric Sesterhenn <snakebyte@gmx.de>
Fri, 31 Mar 2006 23:13:38 +0000 (01:13 +0200)
committerAdrian Bunk <bunk@stusta.de>
Fri, 31 Mar 2006 23:13:38 +0000 (01:13 +0200)
this changes if() BUG(); constructs to BUG_ON() which is
cleaner and can better optimized away

Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
fs/exec.c

index 950ebd43cdc35dd2503214db36289dddb5f26250..0291a68a36261ada2dca60e411af634b1373bc1c 100644 (file)
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -561,7 +561,7 @@ static int exec_mmap(struct mm_struct *mm)
        arch_pick_mmap_layout(mm);
        if (old_mm) {
                up_read(&old_mm->mmap_sem);
-               if (active_mm != old_mm) BUG();
+               BUG_ON(active_mm != old_mm);
                mmput(old_mm);
                return 0;
        }