Having a IF_ENABLED(CONFIG_POSIX_TIMERS) inside of a
#ifdef CONFIG_POSIX_TIMERS section is pointless.

Signed-off-by: Thomas Gleixner <[email protected]>
---
 kernel/time/alarmtimer.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

--- a/kernel/time/alarmtimer.c
+++ b/kernel/time/alarmtimer.c
@@ -520,8 +520,7 @@ static enum alarmtimer_restart alarm_han
 
        spin_lock_irqsave(&ptr->it_lock, flags);
        if ((ptr->it_sigev_notify & ~SIGEV_THREAD_ID) != SIGEV_NONE) {
-               if (IS_ENABLED(CONFIG_POSIX_TIMERS) &&
-                   posix_timer_event(ptr, 0) != 0)
+               if (posix_timer_event(ptr, 0))
                        ptr->it_overrun++;
        }
 


Reply via email to