diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2009-03-30 14:49:44 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2009-03-30 14:49:44 +0200 |
commit | b72b7092f8f5f0729cc9f0868997351f21dbc5cd (patch) | |
tree | e384dbc5a43d4a2288360a8ccf6a48f7ba9dfcb4 /arch/mips/kernel/traps.c | |
parent | ae03550500654e95c47229775bfec33ed0effe40 (diff) | |
download | kernel_samsung_smdk4412-b72b7092f8f5f0729cc9f0868997351f21dbc5cd.zip kernel_samsung_smdk4412-b72b7092f8f5f0729cc9f0868997351f21dbc5cd.tar.gz kernel_samsung_smdk4412-b72b7092f8f5f0729cc9f0868997351f21dbc5cd.tar.bz2 |
MIPS: Use BUG_ON() where possible.
Based on original patch by Stoyan Gaydarov <stoyboyker@gmail.com> which
missed a few places.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/traps.c')
-rw-r--r-- | arch/mips/kernel/traps.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c index 29fadac..e83da17 100644 --- a/arch/mips/kernel/traps.c +++ b/arch/mips/kernel/traps.c @@ -1277,8 +1277,7 @@ static void *set_vi_srs_handler(int n, vi_handler_t addr, int srs) u32 *w; unsigned char *b; - if (!cpu_has_veic && !cpu_has_vint) - BUG(); + BUG_ON(!cpu_has_veic && !cpu_has_vint); if (addr == NULL) { handler = (unsigned long) do_default_vi; |