qemu: Remove unnecessary check in qemuMonitorJSONGetJobInfoOne

It's already dereffed in the initialization and shouldn't be NULL
unless virJSONValueArraySize after a virJSONValueObjectGetArray
could return a NULL data entry.

Found by Coverity

Signed-off-by: John Ferlan <jferlan@redhat.com>
ACKed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
John Ferlan 2019-07-23 08:03:21 -04:00
parent 88ce7bac41
commit e8bf136cff

View File

@ -9133,9 +9133,6 @@ qemuMonitorJSONGetJobInfoOne(virJSONValuePtr data)
VIR_AUTOPTR(qemuMonitorJobInfo) job = NULL;
qemuMonitorJobInfoPtr ret = NULL;
if (!data)
return NULL;
if (VIR_ALLOC(job) < 0)
return NULL;