diff --git a/kernel/exception.c b/kernel/exception.c index f3a215f..2153c6d 100644 --- a/kernel/exception.c +++ b/kernel/exception.c @@ -41,10 +41,7 @@ static const char *const messages[] = { void exception_handler(struct IsrRegisters regs) { - if ( - !(/* regs.int_no >= INT_EXCEPTION_FIRST && */ // unsigned is always >= 0 - regs.int_no <= INT_EXCEPTION_LAST) - ) { + if (regs.int_no > INT_EXCEPTION_LAST) { return; }