From: Tomohiro Kusumi <tkusumi@xxxxxxxxxx> Some functions in null ioengine are used by C/C++ (e.g. null_init() which calls malloc(3)), but C specific ones (not __cplusplus) don't need explicit cast from void* to non-void*, and one usually doesn't. Signed-off-by: Tomohiro Kusumi <tkusumi@xxxxxxxxxx> --- engines/null.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/engines/null.c b/engines/null.c index cf1ee1f2..0cfc22ad 100644 --- a/engines/null.c +++ b/engines/null.c @@ -106,34 +106,34 @@ static struct null_data *null_init(struct thread_data *td) static struct io_u *fio_null_event(struct thread_data *td, int event) { - return null_event((struct null_data *)td->io_ops_data, event); + return null_event(td->io_ops_data, event); } static int fio_null_getevents(struct thread_data *td, unsigned int min_events, unsigned int max, const struct timespec *t) { - struct null_data *nd = (struct null_data *)td->io_ops_data; + struct null_data *nd = td->io_ops_data; return null_getevents(nd, min_events, max, t); } static int fio_null_commit(struct thread_data *td) { - return null_commit(td, (struct null_data *)td->io_ops_data); + return null_commit(td, td->io_ops_data); } static int fio_null_queue(struct thread_data *td, struct io_u *io_u) { - return null_queue(td, (struct null_data *)td->io_ops_data, io_u); + return null_queue(td, td->io_ops_data, io_u); } static int fio_null_open(struct thread_data *td, struct fio_file *f) { - return null_open((struct null_data *)td->io_ops_data, f); + return null_open(td->io_ops_data, f); } static void fio_null_cleanup(struct thread_data *td) { - null_cleanup((struct null_data *)td->io_ops_data); + null_cleanup(td->io_ops_data); } static int fio_null_init(struct thread_data *td) -- 2.13.6 -- To unsubscribe from this list: send the line "unsubscribe fio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html