diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2009-03-30 08:49:44 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2009-03-30 08:49:44 -0400 |
commit | b72b7092f8f5f0729cc9f0868997351f21dbc5cd (patch) | |
tree | e384dbc5a43d4a2288360a8ccf6a48f7ba9dfcb4 /arch/mips/kernel | |
parent | ae03550500654e95c47229775bfec33ed0effe40 (diff) |
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')
-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 29fadaccecdd..e83da174b533 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) | |||
1277 | u32 *w; | 1277 | u32 *w; |
1278 | unsigned char *b; | 1278 | unsigned char *b; |
1279 | 1279 | ||
1280 | if (!cpu_has_veic && !cpu_has_vint) | 1280 | BUG_ON(!cpu_has_veic && !cpu_has_vint); |
1281 | BUG(); | ||
1282 | 1281 | ||
1283 | if (addr == NULL) { | 1282 | if (addr == NULL) { |
1284 | handler = (unsigned long) do_default_vi; | 1283 | handler = (unsigned long) do_default_vi; |