Kernel: Delete unnecessary register & unregister calls

This commit is contained in:
Liav A 2020-02-28 18:24:36 +02:00 committed by Andreas Kling
parent b2e5425426
commit 800a46ace9
Notes: sideshowbarker 2024-07-19 08:58:46 +09:00

View file

@ -72,7 +72,6 @@ SharedIRQHandler::SharedIRQHandler(u8 irq)
#ifdef INTERRUPT_DEBUG
kprintf("Shared Interrupt Handler registered @ %d\n", m_interrupt_number);
#endif
register_generic_interrupt_handler(irq, *this);
disable_interrupt_vector();
}
@ -82,7 +81,6 @@ SharedIRQHandler::~SharedIRQHandler()
kprintf("Shared Interrupt Handler unregistered @ %d\n", interrupt_number());
#endif
disable_interrupt_vector();
unregister_generic_interrupt_handler(interrupt_number(), *this);
}
void SharedIRQHandler::handle_interrupt(RegisterState& regs)