mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
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:
@@ -867,12 +867,8 @@ parse_domcapabilities (guestfs_h *g, const char *domcapabilities_xml,
|
|||||||
static int
|
static int
|
||||||
is_custom_hv (guestfs_h *g, struct backend_libvirt_data *data)
|
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;
|
return 1;
|
||||||
#ifdef QEMU
|
|
||||||
if (STRNEQ (data->default_qemu, QEMU))
|
|
||||||
return 1;
|
|
||||||
#endif
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user