From eaadde5453e33af6826bb03488991aab0297d3dd Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sun, 31 May 2020 20:26:40 +0200 Subject: OMG --- src/kernel/events/event.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/kernel/events') diff --git a/src/kernel/events/event.c b/src/kernel/events/event.c index d479ab7..a50e0c7 100644 --- a/src/kernel/events/event.c +++ b/src/kernel/events/event.c @@ -18,10 +18,7 @@ u32 event_map(u32 id, u8 *function) u32 event_trigger(u32 id, u8 *data) { - if (id >= sizeof(event_map) / sizeof(*event_map)) { - panic("Unknown event id!"); - return -1; - } + assert(id < sizeof(event_map) / sizeof(*event_map)); event_func location = (event_func)event_table[id]; if (!location) { -- cgit v1.2.3