Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c1724c89 authored by Markos Chandras's avatar Markos Chandras Committed by Ralf Baechle
Browse files

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: default avatarMarkos Chandras <markos.chandras@imgtec.com>
Acked-by: default avatarSteven J. Hill <Steven.Hill@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/5909/


Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent a6e95a86
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -1554,7 +1554,6 @@ static void *set_vi_srs_handler(int n, vi_handler_t addr, int srs)
	unsigned char *b;
	unsigned char *b;


	BUG_ON(!cpu_has_veic && !cpu_has_vint);
	BUG_ON(!cpu_has_veic && !cpu_has_vint);
	BUG_ON((n < 0) && (n > 9));


	if (addr == NULL) {
	if (addr == NULL) {
		handler = (unsigned long) do_default_vi;
		handler = (unsigned long) do_default_vi;