]> git.dujemihanovic.xyz Git - u-boot.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)
commit12c90955a7e82687acaed3cb53d096bc669e82ca
tree72e10d39e3bae80b09beea1f43bf25868d81e09f
parentb4d3b338df14d3d793bcbd0c55ec3d4398596c44
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