diff --git a/arch/x86/kernel/irq.c b/arch/x86/kernel/irq.c index 6316b728..22b9d00b 100644 --- a/arch/x86/kernel/irq.c +++ b/arch/x86/kernel/irq.c @@ -48,7 +48,7 @@ extern void irq15(void); * This array is actually an array of function pointers. We use * this to handle custom IRQ handlers for a given IRQ */ -static void *irq_routines[16] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; +static void *irq_routines[16] = {[0 ... 15] = NULL }; /* This installs a custom IRQ handler for the given IRQ */ void irq_install_handler(unsigned int irq, irq_handler_t handler)