lib/launch-libvirt.c: simplify is_custom_hv

g->hv is always set in lib/handle.c

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson
2025-10-21 08:34:22 -04:00
committed by rwmjones
parent e051891347
commit 81e9f81a6e

View File

@@ -867,12 +867,8 @@ parse_domcapabilities (guestfs_h *g, const char *domcapabilities_xml,
static int
is_custom_hv (guestfs_h *g, struct backend_libvirt_data *data)
{
if (g->hv && STRNEQ (g->hv, data->default_qemu))
if (STRNEQ (g->hv, data->default_qemu))
return 1;
#ifdef QEMU
if (STRNEQ (data->default_qemu, QEMU))
return 1;
#endif
return 0;
}