1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-02-18 17:57:27 +03:00

sd-boot: return 0 (not 1) from ticks_read() in fallback implementation

The single consumer of ticks_read() (i.e. time_usec()) checks for == 0
to detect the "not supported/invalid" case, hence actually return the
right value for that.
This commit is contained in:
Lennart Poettering 2022-02-08 11:27:48 +01:00
parent fb63526f72
commit 16cec133c6

View File

@ -25,8 +25,7 @@ static UINT64 ticks_read(void) {
}
#else
static UINT64 ticks_read(void) {
UINT64 val = 1;
return val;
return 0;
}
#endif