summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-08-14 01:59:58 +0200
committerTom Gundersen <teg@jklm.no>2014-08-14 02:00:43 +0200
commitd06441da04cd5102816858d8d1e4aa367c00156b (patch)
tree3e7f11d7eb59a097161e51315e818cb6eacc2250
parent19f8d037833f2426f0ea6b06279d669ed69fcfd1 (diff)
sd-event: drop _likely_()
This is not certain to be likely. Lennart says: a frequent usecase is invoking some function regularly in intervals in such a case every single iteration we'll have to rearm
-rw-r--r--src/libsystemd/sd-event/sd-event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-event/sd-event.c b/src/libsystemd/sd-event/sd-event.c
index d6549148bb..1e3afaeacc 100644
--- a/src/libsystemd/sd-event/sd-event.c
+++ b/src/libsystemd/sd-event/sd-event.c
@@ -1755,7 +1755,7 @@ static int event_arm_timer(
assert(e);
assert(d);
- if (_likely_(!d->needs_rearm))
+ if (!d->needs_rearm)
return 0;
else
d->needs_rearm = false;