Signed-off-by: Kristina Hanicova <khanicov at redhat.com>
---
 src/conf/domain_capabilities.c | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/src/conf/domain_capabilities.c b/src/conf/domain_capabilities.c
index bb36a956db..6e8f957657 100644
--- a/src/conf/domain_capabilities.c
+++ b/src/conf/domain_capabilities.c
@@ -598,14 +598,12 @@ virDomainCapsFeatureSEVFormat(virBuffer *buf,
     virBufferAsprintf(buf, "<cbitpos>%d</cbitpos>\n", sev->cbitpos);
     virBufferAsprintf(buf, "<reducedPhysBits>%d</reducedPhysBits>\n",
                       sev->reduced_phys_bits);
-    virBufferAsprintf(buf, "<maxGuests>%d</maxGuests>\n",
-                      sev->max_guests);
-    virBufferAsprintf(buf, "<maxESGuests>%d</maxESGuests>\n",
-                      sev->max_es_guests);
-    if (sev->cpu0_id != NULL) {
-        virBufferAsprintf(buf, "<cpu0Id>%s</cpu0Id>\n",
-                          sev->cpu0_id);
-    }
+    virBufferAsprintf(buf, "<maxGuests>%d</maxGuests>\n", sev->max_guests);
+    virBufferAsprintf(buf, "<maxESGuests>%d</maxESGuests>\n", 
sev->max_es_guests);
+
+    if (sev->cpu0_id != NULL)
+        virBufferAsprintf(buf, "<cpu0Id>%s</cpu0Id>\n", sev->cpu0_id);
+
     virBufferAdjustIndent(buf, -2);
     virBufferAddLit(buf, "</sev>\n");
 }
-- 
2.35.3

Reply via email to