aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/events/event.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/events/event.c')
-rw-r--r--src/kernel/events/event.c5
1 files changed, 1 insertions, 4 deletions
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) {