From: Tomohiro Kusumi Date: Mon, 12 Jun 2017 20:02:08 +0000 (+0300) Subject: sg: drop redundant void* cast X-Git-Tag: fio-2.21~5 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=be660713de581921b71ea7b76a664f360884c205 sg: drop redundant void* cast No need to cast to void*. This is the only void* cast for memcpy(3) in the entire fio. Signed-off-by: Tomohiro Kusumi Signed-off-by: Jens Axboe --- diff --git a/engines/sg.c b/engines/sg.c index b924ca3e..833d9205 100644 --- a/engines/sg.c +++ b/engines/sg.c @@ -184,7 +184,7 @@ re_read: if (hdr->info & SG_INFO_CHECK) { struct io_u *io_u; io_u = (struct io_u *)(hdr->usr_ptr); - memcpy((void*)&(io_u->hdr), (void*)hdr, sizeof(struct sg_io_hdr)); + memcpy(&io_u->hdr, hdr, sizeof(struct sg_io_hdr)); sd->events[i]->error = EIO; } }