Signed-off-by: Kristina Hanicova <khanicov(a)redhat.com>
---
src/conf/domain_conf.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index e52f39c809..b600bfec31 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -4206,12 +4206,8 @@ virDomainObjGetOneDefState(virDomainObj *vm,
if (virDomainObjUpdateModificationImpact(vm, &flags) < 0)
return NULL;
- if (live) {
- if (flags & VIR_DOMAIN_AFFECT_LIVE)
- *live = true;
- else
- *live = false;
- }
+ if (live)
+ *live = (flags & VIR_DOMAIN_AFFECT_LIVE) ? true : false;
if (virDomainObjIsActive(vm) && flags & VIR_DOMAIN_AFFECT_CONFIG)
return vm->newDef;
--
2.35.3