aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/time/alarmtimer.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2017-05-30 23:15:36 +0200
committerThomas Gleixner <tglx@linutronix.de>2017-06-04 15:40:22 +0200
commit18c700c4e3d0a37c43a2df8b8f740121d4dac645 (patch)
tree4445bbeb831f043bf37c0df1865a7c892583d97d /kernel/time/alarmtimer.c
parentMerge branch 'timers/urgent' into WIP.timers (diff)
downloadlinux-dev-18c700c4e3d0a37c43a2df8b8f740121d4dac645.tar.xz
linux-dev-18c700c4e3d0a37c43a2df8b8f740121d4dac645.zip
alarmtimer: Remove pointless config conditional
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
Diffstat (limited to 'kernel/time/alarmtimer.c')
-rw-r--r--kernel/time/alarmtimer.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/time/alarmtimer.c b/kernel/time/alarmtimer.c
index e645dcc7d4ee..2a8675f9aac5 100644
--- a/kernel/time/alarmtimer.c
+++ b/kernel/time/alarmtimer.c
@@ -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++;
}