]> git.baikalelectronics.ru Git - uboot.git/commit
event: remove CONFIG_EVENT_DYNAMIC check in event_register()
authorOvidiu Panait <ovpanait@gmail.com>
Sun, 15 May 2022 18:40:28 +0000 (21:40 +0300)
committerTom Rini <trini@konsulko.com>
Mon, 6 Jun 2022 21:47:17 +0000 (17:47 -0400)
commitabf3ccadd5f927600dc4da7f47e0d3a2fc4758f0
tree72e10d39e3bae80b09beea1f43bf25868d81e09f
parent409e942334d0e8ed0cac69a937ffc048ab97d25e
event: remove CONFIG_EVENT_DYNAMIC check in event_register()

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 Panait <ovpanait@gmail.com>
common/event.c