]> git.proxmox.com Git - mirror_qemu.git/commit - qobject/block-qdict.c
block-qdict: Tweak qdict_flatten_qdict(), qdict_flatten_qlist()
authorMarkus Armbruster <armbru@redhat.com>
Thu, 14 Jun 2018 19:14:36 +0000 (21:14 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 15 Jun 2018 12:49:44 +0000 (14:49 +0200)
commitf1b34a248e9785e8cc0d28a1685d2cf4460bb256
treea366c76efda2a62e8a612fc0f98181aa32c4345c
parenteb0e0f7d3d4a9c585421d05b19ca71df5d69fc47
block-qdict: Tweak qdict_flatten_qdict(), qdict_flatten_qlist()

qdict_flatten_qdict() skips copying scalars from @qdict to @target
when the two are the same.  Fair enough, but it uses a non-obvious
test for "same".  Replace it by the obvious one.  While there, improve
comments.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
qobject/block-qdict.c