]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: agent: remove redundant checks
authorJán Tomko <jtomko@redhat.com>
Mon, 5 Oct 2020 20:09:49 +0000 (22:09 +0200)
committerJán Tomko <jtomko@redhat.com>
Thu, 8 Oct 2020 09:16:07 +0000 (11:16 +0200)
commitf08349247c32266afe1af86da2ce4ecddf446668
tree042bcd3e55434f6201878e7057027a06c321c4e8
parent2820ee522994636d6c1ee562e4b4d7d42970ae13
qemu: agent: remove redundant checks

virJSONValueObjectGetArray returns NULL if the object with
the supplied key is not an array.

Calling virJSONValueIsArray right after is redundant.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
src/qemu/qemu_agent.c