[PATCH] fio_spliceio_event() used wrong private type
diff --git a/fio-io.c b/fio-io.c
index f3606e1..f5d48fd 100644
--- a/fio-io.c
+++ b/fio-io.c
@@ -760,7 +760,7 @@
 
 static struct io_u *fio_spliceio_event(struct thread_data *td, int event)
 {
-	struct syncio_data *sd = td->io_data;
+	struct spliceio_data *sd = td->io_data;
 
 	assert(event == 0);
 
@@ -780,7 +780,7 @@
 
 	buflen = io_u->buflen;
 	p = io_u->buf;
-	do {
+	while (buflen) {
 		off_t off = io_u->offset;
 
 		ret = splice(td->fd, &off, sd->pipe[1], NULL, buflen, 0);
@@ -797,7 +797,7 @@
 			ret -= ret2;
 			p += ret2;
 		}
-	} while (buflen);
+	}
 
 	return io_u->buflen;
 }