[dts] [PATCH V1]framework\qemu_kvm: remove duplicate source code

yufengmx yufengx.mo at intel.com
Tue Aug 13 07:34:27 CEST 2019


remove duplicate opt_settings key setting in __add_vm_virtio_user_pci method.

Signed-off-by: yufengmx <yufengx.mo at intel.com>
---
 framework/qemu_kvm.py | 2 --
 1 file changed, 2 deletions(-)

diff --git a/framework/qemu_kvm.py b/framework/qemu_kvm.py
index c425f41..e349517 100644
--- a/framework/qemu_kvm.py
+++ b/framework/qemu_kvm.py
@@ -813,8 +813,6 @@ class QEMUKvm(VirtBase):
             opts['opt_settings'] = options['opt_settings']
         if 'opt_legacy' in options.keys() and options['opt_legacy']:
             opts['opt_legacy'] = options['opt_legacy']
-        if 'opt_settings' in options.keys() and options['opt_settings']:
-            opts['opt_settings'] = options['opt_settings']
         self.__add_vm_virtio_net_pci(**opts)
 
     def __add_vm_virtio_cuse_pci(self, **options):
-- 
1.9.3



More information about the dts mailing list