diff options
author | Markus Armbruster <armbru@redhat.com> | 2019-03-13 18:44:33 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2019-03-26 08:10:11 +0100 |
commit | ad85b0b4c737d59bcdfba1e75b9a202e12fb5349 (patch) | |
tree | fe26a42cc146452d163d2e264b2f125b8fe94ffd /hw/block/xen-block.c | |
parent | 57b7291e90aca93da41b32d264e96d313db87b42 (diff) | |
download | qemu-ad85b0b4c737d59bcdfba1e75b9a202e12fb5349.zip qemu-ad85b0b4c737d59bcdfba1e75b9a202e12fb5349.tar.gz qemu-ad85b0b4c737d59bcdfba1e75b9a202e12fb5349.tar.bz2 |
xen-block: Replace qdict_put_obj() by qdict_put() where appropriate
Patch created mechanically by rerunning:
$ spatch --sp-file scripts/coccinelle/qobject.cocci \
--macro-file scripts/cocci-macro-file.h \
--dir hw/block --in-place
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20190313174433.12966-1-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Acked-by: Paul Durrant <paul.durrant@citrix.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/block/xen-block.c')
-rw-r--r-- | hw/block/xen-block.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/block/xen-block.c b/hw/block/xen-block.c index 70fc245..9c722b9 100644 --- a/hw/block/xen-block.c +++ b/hw/block/xen-block.c @@ -771,7 +771,7 @@ static XenBlockDrive *xen_block_drive_create(const char *id, QDict *cache_qdict = qdict_new(); qdict_put_bool(cache_qdict, "direct", true); - qdict_put_obj(file_layer, "cache", QOBJECT(cache_qdict)); + qdict_put(file_layer, "cache", cache_qdict); qdict_put_str(file_layer, "aio", "native"); } @@ -796,7 +796,7 @@ static XenBlockDrive *xen_block_drive_create(const char *id, qdict_put_str(driver_layer, "driver", driver); g_free(driver); - qdict_put_obj(driver_layer, "file", QOBJECT(file_layer)); + qdict_put(driver_layer, "file", file_layer); g_assert(!drive->node_name); drive->node_name = xen_block_blockdev_add(drive->id, driver_layer, |