]> xenbits.xensource.com Git - libvirt.git/commit
qemu_monitor_json: Drop redundant checks
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 3 May 2016 08:55:41 +0000 (10:55 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 3 May 2016 12:18:02 +0000 (14:18 +0200)
commite2ac519cd2dd02cf6319a4263f11f788a5cbbff6
tree39fedc397c2c69a311e0e0c87d69d21e00672cc0
parent3af81868982829ac543b6cfb510a59d3968e3eaa
qemu_monitor_json: Drop redundant checks

In these functions I'm fixing here, we do call
qemuMonitorJSONCheckError() followed by another check if qemu
reply contains 'return' object. If it wouldn't, the former
CheckError() function would error out and the flow would not even
get to the latter.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_monitor_json.c