From 8d35dae708ffbb88f1b023964913d3d53d4a7418 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 14 Dec 2013 05:08:47 +0100 Subject: [PATCH] event: some snake-oil to speed up impossible error checks --- src/libsystemd-bus/sd-event.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libsystemd-bus/sd-event.c b/src/libsystemd-bus/sd-event.c index bf8b0fcf64f..06c84d717ab 100644 --- a/src/libsystemd-bus/sd-event.c +++ b/src/libsystemd-bus/sd-event.c @@ -1605,7 +1605,7 @@ static int flush_timer(sd_event *e, int fd, uint32_t events, usec_t *next) { return -errno; } - if (ss != sizeof(x)) + if (_unlikely_(ss != sizeof(x))) return -EIO; if (next) @@ -1733,7 +1733,7 @@ static int process_signal(sd_event *e, uint32_t events) { return -errno; } - if (ss != sizeof(si)) + if (_unlikely_(ss != sizeof(si))) return -EIO; read_one = true;