]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemuMonitorGetPRManagerInfo: `virHashNew` cannot return NULL
authorTim Wiederhake <twiederh@redhat.com>
Mon, 5 Jul 2021 14:04:59 +0000 (16:04 +0200)
committerTim Wiederhake <twiederh@redhat.com>
Mon, 19 Jul 2021 14:39:41 +0000 (16:39 +0200)
Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/qemu/qemu_monitor.c

index f66a3457c1989443440e3107e7509e20ada50565..940eeab9a85e3b7566d0a3a4f5631f3868aed265 100644 (file)
@@ -4522,8 +4522,7 @@ qemuMonitorGetPRManagerInfo(qemuMonitor *mon,
 
     QEMU_CHECK_MONITOR(mon);
 
-    if (!(info = virHashNew(g_free)))
-        goto cleanup;
+    info = virHashNew(g_free);
 
     if (qemuMonitorJSONGetPRManagerInfo(mon, info) < 0)
         goto cleanup;