hw/ide: drop iov field from IDEState
commite5863d49e41b1b4b695f854c711a55d2584ee367
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Mon, 18 Feb 2019 14:09:24 +0000 (18 17:09 +0300)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 22 Feb 2019 09:42:13 +0000 (22 09:42 +0000)
treec6c6e416ca0a052494793bf93fc60c9e1b8d19e2
parent405d8fe0ba62ddb5d027ad7bc77c6ee88460ad23
hw/ide: drop iov field from IDEState

@iov is used only to initialize @qiov. Let's use new
qemu_iovec_init_buf() instead, which simplifies the code.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 20190218140926.333779-16-vsementsov@virtuozzo.com
Message-Id: <20190218140926.333779-16-vsementsov@virtuozzo.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/ide/atapi.c
hw/ide/core.c
include/hw/ide/internal.h