[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [libvirt-glib] Remove unneeded call in libvirt-gconfig test



Because of a copy and paste error, the test program is making an
unneeded call to gvir_config_domain_channel_set_target_type
when setting up its USB redirection device.
---
 libvirt-gconfig/tests/test-domain-create.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/libvirt-gconfig/tests/test-domain-create.c b/libvirt-gconfig/tests/test-domain-create.c
index 88c887d..4ee33aa 100644
--- a/libvirt-gconfig/tests/test-domain-create.c
+++ b/libvirt-gconfig/tests/test-domain-create.c
@@ -204,8 +204,6 @@ int main(int argc, char **argv)
     redirdev = gvir_config_domain_redirdev_new();
     gvir_config_domain_redirdev_set_bus(redirdev,
                                         GVIR_CONFIG_DOMAIN_REDIRDEV_BUS_USB);
-    gvir_config_domain_channel_set_target_type(channel,
-                                               GVIR_CONFIG_DOMAIN_CHANNEL_TARGET_VIRTIO);
     spicevmc = gvir_config_domain_chardev_source_spicevmc_new();
     gvir_config_domain_chardev_set_source(GVIR_CONFIG_DOMAIN_CHARDEV(redirdev),
                                           GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE(spicevmc));
-- 
1.7.7.6


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]