alarmtimer: Remove pointless config conditional
authorThomas Gleixner <tglx@linutronix.de>
Tue, 30 May 2017 21:15:36 +0000 (23:15 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 4 Jun 2017 13:40:22 +0000 (15:40 +0200)
Having a IF_ENABLED(CONFIG_POSIX_TIMERS) inside of a
#ifdef CONFIG_POSIX_TIMERS section is pointless.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: John Stultz <john.stultz@linaro.org>
Link: http://lkml.kernel.org/r/20170530211655.975218056@linutronix.de
kernel/time/alarmtimer.c

index e645dcc7d4ee200911a9e87cb3747ed9859948b2..2a8675f9aac5c573c89c2b2d226fa1f8c4fcd54a 100644 (file)
@@ -520,8 +520,7 @@ static enum alarmtimer_restart alarm_handle_timer(struct alarm *alarm,
 
        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++;
        }