On 02/24/2018 09:40 AM, Max Reitz wrote:
This patch reworks some places which use either qobject_type() checks
plus qobject_to(), where the latter alone is sufficient, or NULL checks
plus qobject_type() checks where we can simply do a qobject_to() != NULL
check.
Signed-off-by: Max Reitz <[email protected]>
Reviewed-by: Alberto Garcia <[email protected]>
---
qapi/qobject-input-visitor.c | 4 ++--
qobject/json-parser.c | 13 +++++++------
qobject/qdict.c | 20 +++++++++++---------
3 files changed, 20 insertions(+), 17 deletions(-)
Reviewed-by: Eric Blake <[email protected]>
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org