diff options
author | Markos Chandras <markos.chandras@imgtec.com> | 2013-09-26 11:35:31 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2013-10-29 21:25:20 +0100 |
commit | c1724c89973e28a12a605f66e5151bdb8c354b76 (patch) | |
tree | 7b6ad2016abe9a54adf758304a24a2651ecf53a0 /arch | |
parent | MIPS: PowerTV: Remove support code. (diff) | |
download | linux-c1724c89973e28a12a605f66e5151bdb8c354b76.tar.xz linux-c1724c89973e28a12a605f66e5151bdb8c354b76.zip |
MIPS: Remove bogus BUG_ON()
Checking for n<0 && n>9 makes no sense because it can never
be true. Moreover, we can have up to 64 vectored interrupts
so BUG_ON(n>9) was wrong anyway.
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Acked-by: Steven J. Hill <Steven.Hill@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/5909/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/kernel/traps.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c index 524841f02803..f2ae9cb57ff0 100644 --- a/arch/mips/kernel/traps.c +++ b/arch/mips/kernel/traps.c @@ -1554,7 +1554,6 @@ static void *set_vi_srs_handler(int n, vi_handler_t addr, int srs) unsigned char *b; BUG_ON(!cpu_has_veic && !cpu_has_vint); - BUG_ON((n < 0) && (n > 9)); if (addr == NULL) { handler = (unsigned long) do_default_vi; |