]> xenbits.xensource.com Git - people/aperard/libvirt.git/commitdiff
test_driver: Remove unused variable in testDomainAttachDeviceLiveAndConfig()
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 4 Dec 2023 08:50:17 +0000 (09:50 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 4 Dec 2023 08:50:17 +0000 (09:50 +0100)
The hotplug functionality added earlier really supports only live
addition of devices, no coldplug yet rendering @devConf in
testDomainAttachDeviceLiveAndConfig() an unused variable. Remove
it.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/test/test_driver.c

index 47ca25c8cba2bf57670cde9a6d02b5383f6bb271..67f8e75296283ea289f512a2934a8f0ddda79cd4 100644 (file)
@@ -10125,7 +10125,6 @@ testDomainAttachDeviceLiveAndConfig(virDomainObj *vm,
                                     const char *xml,
                                     unsigned int flags)
 {
-    g_autoptr(virDomainDeviceDef) devConf = NULL;
     g_autoptr(virDomainDeviceDef) devLive = NULL;
     unsigned int parse_flags = VIR_DOMAIN_DEF_PARSE_INACTIVE |
                                VIR_DOMAIN_DEF_PARSE_ABI_UPDATE;