diff options
| author | Stoyan Gaydarov <stoyboyker@gmail.com> | 2009-03-10 01:10:30 -0400 |
|---|---|---|
| committer | Tony Luck <tony.luck@intel.com> | 2009-04-01 12:50:48 -0400 |
| commit | 80a03e29164c76b70e6dbb1d10515820cc24487a (patch) | |
| tree | ee9426ae7b76777169079e7120a8413384f128b6 /arch/ia64/kernel | |
| parent | ebf7649a4c6d37ce24c143001125cf29cc0bcf6a (diff) | |
[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>
Diffstat (limited to 'arch/ia64/kernel')
| -rw-r--r-- | arch/ia64/kernel/module.c | 3 | ||||
| -rw-r--r-- | arch/ia64/kernel/setup.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/arch/ia64/kernel/module.c b/arch/ia64/kernel/module.c index 34fe4259a144..da3b0cf495a3 100644 --- a/arch/ia64/kernel/module.c +++ b/arch/ia64/kernel/module.c | |||
| @@ -533,8 +533,7 @@ get_ltoff (struct module *mod, uint64_t value, int *okp) | |||
| 533 | goto found; | 533 | goto found; |
| 534 | 534 | ||
| 535 | /* Not enough GOT entries? */ | 535 | /* Not enough GOT entries? */ |
| 536 | if (e >= (struct got_entry *) (mod->arch.got->sh_addr + mod->arch.got->sh_size)) | 536 | BUG_ON(e >= (struct got_entry *) (mod->arch.got->sh_addr + mod->arch.got->sh_size)); |
| 537 | BUG(); | ||
| 538 | 537 | ||
| 539 | e->val = value; | 538 | e->val = value; |
| 540 | ++mod->arch.next_got_entry; | 539 | ++mod->arch.next_got_entry; |
diff --git a/arch/ia64/kernel/setup.c b/arch/ia64/kernel/setup.c index 833b3ef92779..714066aeda7f 100644 --- a/arch/ia64/kernel/setup.c +++ b/arch/ia64/kernel/setup.c | |||
| @@ -1018,8 +1018,7 @@ cpu_init (void) | |||
| 1018 | | IA64_DCR_DA | IA64_DCR_DD | IA64_DCR_LC)); | 1018 | | IA64_DCR_DA | IA64_DCR_DD | IA64_DCR_LC)); |
| 1019 | atomic_inc(&init_mm.mm_count); | 1019 | atomic_inc(&init_mm.mm_count); |
| 1020 | current->active_mm = &init_mm; | 1020 | current->active_mm = &init_mm; |
| 1021 | if (current->mm) | 1021 | BUG_ON(current->mm); |
| 1022 | BUG(); | ||
| 1023 | 1022 | ||
| 1024 | ia64_mmu_init(ia64_imva(cpu_data)); | 1023 | ia64_mmu_init(ia64_imva(cpu_data)); |
| 1025 | ia64_mca_cpu_init(ia64_imva(cpu_data)); | 1024 | ia64_mca_cpu_init(ia64_imva(cpu_data)); |
