[IA64] BUG to BUG_ON changes
Replace: if (test) BUG(); with BUG_ON(test); Signed-off-by: Stoyan Gaydarov <stoyboyker@gmail.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
This commit is contained in:
committed by
Tony Luck
parent
ebf7649a4c
commit
80a03e2916
@@ -533,8 +533,7 @@ get_ltoff (struct module *mod, uint64_t value, int *okp)
|
||||
goto found;
|
||||
|
||||
/* Not enough GOT entries? */
|
||||
if (e >= (struct got_entry *) (mod->arch.got->sh_addr + mod->arch.got->sh_size))
|
||||
BUG();
|
||||
BUG_ON(e >= (struct got_entry *) (mod->arch.got->sh_addr + mod->arch.got->sh_size));
|
||||
|
||||
e->val = value;
|
||||
++mod->arch.next_got_entry;
|
||||
|
@@ -1018,8 +1018,7 @@ cpu_init (void)
|
||||
| IA64_DCR_DA | IA64_DCR_DD | IA64_DCR_LC));
|
||||
atomic_inc(&init_mm.mm_count);
|
||||
current->active_mm = &init_mm;
|
||||
if (current->mm)
|
||||
BUG();
|
||||
BUG_ON(current->mm);
|
||||
|
||||
ia64_mmu_init(ia64_imva(cpu_data));
|
||||
ia64_mca_cpu_init(ia64_imva(cpu_data));
|
||||
|
Reference in New Issue
Block a user