mirror of
https://github.com/systemd/systemd.git
synced 2024-11-07 09:56:51 +03:00
event: some snake-oil to speed up impossible error checks
This commit is contained in:
parent
9a800b5622
commit
8d35dae708
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user