diff options
author | Marvin Borner | 2020-05-31 20:26:40 +0200 |
---|---|---|
committer | Marvin Borner | 2020-05-31 20:26:40 +0200 |
commit | eaadde5453e33af6826bb03488991aab0297d3dd (patch) | |
tree | f52d06c0841b664abcab547481dca41f4cfb30ff /src/kernel/events/event.c | |
parent | 45a5ecc72d8e700614a0751f0e7ec68199885b77 (diff) |
OMG
Diffstat (limited to 'src/kernel/events/event.c')
-rw-r--r-- | src/kernel/events/event.c | 5 |
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) { |