aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/events
diff options
context:
space:
mode:
authorMarvin Borner2020-05-31 20:26:40 +0200
committerMarvin Borner2020-05-31 20:26:40 +0200
commiteaadde5453e33af6826bb03488991aab0297d3dd (patch)
treef52d06c0841b664abcab547481dca41f4cfb30ff /src/kernel/events
parent45a5ecc72d8e700614a0751f0e7ec68199885b77 (diff)
OMG
Diffstat (limited to 'src/kernel/events')
-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) {