X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=engines%2Ffio-engine-sync.c;h=43f42ca2ffcace7068656a0ebd4453453af69d7b;hp=8bc990d72bcd3de7457169e9b27b1f1389719bd9;hb=6040dabcaaf29ecea9c68735a4d3a6ad6411f573;hpb=b50b87559205b4758deba7c547ab07bf6f2e8ff8;ds=sidebyside diff --git a/engines/fio-engine-sync.c b/engines/fio-engine-sync.c index 8bc990d7..43f42ca2 100644 --- a/engines/fio-engine-sync.c +++ b/engines/fio-engine-sync.c @@ -57,7 +57,7 @@ static int fio_syncio_queue(struct thread_data *td, struct io_u *io_u) { struct syncio_data *sd = td->io_ops->data; struct fio_file *f = io_u->file; - int ret; + unsigned int ret; if (io_u->ddir == DDIR_READ) ret = read(f->fd, io_u->buf, io_u->buflen); @@ -66,7 +66,7 @@ static int fio_syncio_queue(struct thread_data *td, struct io_u *io_u) else ret = fsync(f->fd); - if ((unsigned int) ret != io_u->buflen) { + if (ret != io_u->buflen) { if (ret > 0) { io_u->resid = io_u->buflen - ret; io_u->error = EIO;