When enable_check_swd == false, there is no use to initialize swd. Just disable it in this case. Signed-off-by: Naohiro Aota <naohiro.aota@xxxxxxx> --- zbd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zbd.c b/zbd.c index ee8bcb30416a..ddf1e6f3e008 100644 --- a/zbd.c +++ b/zbd.c @@ -847,6 +847,9 @@ static void zbd_init_swd(struct fio_file *f) { uint64_t swd; + if (!enable_check_swd) + return; + swd = zbd_process_swd(f, SET_SWD); dprint(FD_ZBD, "%s(%s): swd = %" PRIu64 "\n", __func__, f->file_name, swd); -- 2.25.1