BUG_ON() Conversion in fs/exec.c
Subsystems (3)
PATCH 6/8 BUG_ON() Conversion in fs/exec.c
hi,
this changes if() BUG(); constructs to BUG_ON() which is cleaner and can better optimized away
Signed-off-by Eric Sesterhenn <[email protected]>
fs/exec.c renamed from fs/exec.c.orig +1 -1
@@ -561,7 +561,7 @@ static int exec_mmap(struct mm_struct *march_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 ; }
_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors