X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=gettime.c;h=8991703fd0662fad4616ed8ab66f154f12c0ade9;hp=277f2cf87ec16229150651ee85a163ed0b5ce7f4;hb=9ee1c647001865a20324cbc2d7c1d68f0f24503e;hpb=572cfb3f4d2cbf22291b395f2bb41facdc17ce86 diff --git a/gettime.c b/gettime.c index 277f2cf8..8991703f 100644 --- a/gettime.c +++ b/gettime.c @@ -205,7 +205,7 @@ void fio_gettime(struct timeval *tp, void fio_unused *caller) gtod_log_caller(caller); #endif - if (fio_tv) { + if (fio_unlikely(fio_tv)) { memcpy(tp, fio_tv, sizeof(*tp)); return; }