diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-12-14 05:08:47 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-12-14 05:10:25 +0100 |
commit | 8d35dae708ffbb88f1b023964913d3d53d4a7418 (patch) | |
tree | 693f05e2c4df2a464ad91e7b395d7ee06a889f9f /src/libsystemd-bus/sd-event.c | |
parent | 9a800b5622b0feec879c3f5c81f7af5a8640e57c (diff) |
event: some snake-oil to speed up impossible error checks
Diffstat (limited to 'src/libsystemd-bus/sd-event.c')
-rw-r--r-- | src/libsystemd-bus/sd-event.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsystemd-bus/sd-event.c b/src/libsystemd-bus/sd-event.c index bf8b0fcf64..06c84d717a 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; |