[PATCH 13/23] qemuDomainAttachDeviceConfig: Remove pointless assignment

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

 



'dev->data.rng' is NULLed by VIR_APPEND_ELEMENT

Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
---
 src/qemu/qemu_driver.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
index e53f167575..a7d76dd00f 100644
--- a/src/qemu/qemu_driver.c
+++ b/src/qemu/qemu_driver.c
@@ -7319,8 +7319,6 @@ qemuDomainAttachDeviceConfig(virDomainDef *vmdef,
         }

         VIR_APPEND_ELEMENT(vmdef->rngs, vmdef->nrngs, dev->data.rng);
-        dev->data.rng = NULL;
-
         break;

     case VIR_DOMAIN_DEVICE_MEMORY:
-- 
2.31.1




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux