errno is not negative
[fio.git] / engines / net.c
index 0efd3369ab3ae6b9caf4f327682a9d30ffcb71bd..94bae95af988e167143c089d015a1eda58b81d05 100644 (file)
@@ -165,13 +165,13 @@ static int fio_netio_splice_out(struct thread_data *td, struct io_u *io_u)
 #else
 static int fio_netio_splice_in(struct thread_data *td, struct io_u *io_u)
 {
-       errno = -EOPNOTSUPP;
+       errno = EOPNOTSUPP;
        return -1;
 }
 
 static int fio_netio_splice_out(struct thread_data *td, struct io_u *io_u)
 {
-       errno = -EOPNOTSUPP;
+       errno = EOPNOTSUPP;
        return -1;
 }
 #endif
@@ -426,7 +426,6 @@ static void fio_netio_cleanup(struct thread_data *td)
                        close(nd->pipes[1]);
 
                free(nd);
-               td->io_ops->data = NULL;
        }
 }