From 197ea3ca20879b29fca41a07cf43e5b04b9c5083 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Mon, 26 Oct 2020 16:36:40 +0100 Subject: Optimizations --- kernel/features/event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kernel/features/event.c') diff --git a/kernel/features/event.c b/kernel/features/event.c index 633f633..d79d531 100644 --- a/kernel/features/event.c +++ b/kernel/features/event.c @@ -46,7 +46,7 @@ u32 event_trigger(u32 id, void *data) { assert(id < sizeof(event_table) / sizeof(*event_table)); - if (memcmp(event_table[id], 0, sizeof(struct list)) == 0 || !event_table[id]->head) { + if (!event_table[id] || !event_table[id]->head) { printf("Event %d not mapped!\n", id); return 1; } -- cgit v1.2.3