summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/event.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/common/event.c b/common/event.c
index 9d67a060a02..063647447d5 100644
--- a/common/event.c
+++ b/common/event.c
@@ -159,8 +159,6 @@ int event_register(const char *id, enum event_t type, event_handler_t func, void
struct event_state *state = gd_event_state();
struct event_spy *spy;
- if (!CONFIG_IS_ENABLED(EVENT_DYNAMIC))
- return -ENOSYS;
spy = malloc(sizeof(*spy));
if (!spy)
return log_msg_ret("alloc", -ENOMEM);