Added missing return statement to __fio_flush

This commit is contained in:
Max Wash
2020-04-03 14:57:13 +01:00
parent bee0a8ff9f
commit 4e7c3c20b1

View File

@@ -45,7 +45,9 @@ unsigned int __fio_flush(struct __io_file *f)
f->err = 1; f->err = 1;
} }
size_t flushed = f->buf_idx;
f->buf_idx = 0; f->buf_idx = 0;
return flushed;
} }
int __fio_error(struct __io_file *f) int __fio_error(struct __io_file *f)