repo.or.cz
/
libguestfs.git
/
commitdiff
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
raw
|
patch
|
inline
|
side by side
(parent:
e051891
)
lib/launch-libvirt.c: simplify is_custom_hv
author
Cole Robinson
<
[email protected]
>
Tue, 21 Oct 2025 12:34:22 +0000
(21 08:34 -0400)
committer
rwmjones
<
[email protected]
>
Thu, 23 Oct 2025 10:22:55 +0000
(23 11:22 +0100)
g->hv is always set in lib/handle.c
Signed-off-by: Cole Robinson <
[email protected]
>
lib/launch-libvirt.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/launch-libvirt.c
b/lib/launch-libvirt.c
index
30fe495
..
0d101cd
100644
(file)
--- a/
lib/launch-libvirt.c
+++ b/
lib/launch-libvirt.c
@@
-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;
}