mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 14:15:28 +00:00
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:
parent
88ce7bac41
commit
e8bf136cff
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user