Re: [PATCH 1/2] event: remove CONFIG_EVENT_DYNAMIC check in event_register()

2022-06-07 Thread Tom Rini
On Sun, May 15, 2022 at 09:40:28PM +0300, Ovidiu Panait wrote: > The whole event_register() function is wrapped in EVENT_DYNAMIC #ifdef > checks, so the inner check is not needed: > > #if CONFIG_IS_ENABLED(EVENT_DYNAMIC) > ... > int event_register(...) > { > ... > if (!CONFIG_IS_ENA

[PATCH 1/2] event: remove CONFIG_EVENT_DYNAMIC check in event_register()

2022-05-15 Thread Ovidiu Panait
The whole event_register() function is wrapped in EVENT_DYNAMIC #ifdef checks, so the inner check is not needed: #if CONFIG_IS_ENABLED(EVENT_DYNAMIC) ... int event_register(...) { ... if (!CONFIG_IS_ENABLED(EVENT_DYNAMIC)) return -ENOSYS; } #endif Signed-off-by: Ovidiu Pa