[PATCH] qemuGetSEVInfoToParams: Reformat to standard coding style

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

 



The function was formatted weirdly which prompted additions to conform
to the unusual style.

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

diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
index bae8b7c39b..372e1360b5 100644
--- a/src/qemu/qemu_driver.c
+++ b/src/qemu/qemu_driver.c
@@ -19901,30 +19901,30 @@ qemuGetSEVInfoToParams(virQEMUCaps *qemuCaps,
     virCheckFlags(VIR_TYPED_PARAM_STRING_OKAY, -1);

     if (virTypedParamsAddString(&sevParams, &n, &maxpar,
-                    VIR_NODE_SEV_PDH, sev->pdh) < 0)
+                                VIR_NODE_SEV_PDH, sev->pdh) < 0)
         return -1;

     if (virTypedParamsAddString(&sevParams, &n, &maxpar,
-                    VIR_NODE_SEV_CERT_CHAIN, sev->cert_chain) < 0)
+                                VIR_NODE_SEV_CERT_CHAIN, sev->cert_chain) < 0)
         goto cleanup;

     if (virTypedParamsAddUInt(&sevParams, &n, &maxpar,
-                    VIR_NODE_SEV_CBITPOS, sev->cbitpos) < 0)
+                              VIR_NODE_SEV_CBITPOS, sev->cbitpos) < 0)
         goto cleanup;

     if (virTypedParamsAddUInt(&sevParams, &n, &maxpar,
-                    VIR_NODE_SEV_REDUCED_PHYS_BITS,
-                    sev->reduced_phys_bits) < 0)
+                              VIR_NODE_SEV_REDUCED_PHYS_BITS,
+                              sev->reduced_phys_bits) < 0)
         goto cleanup;

     if (virTypedParamsAddUInt(&sevParams, &n, &maxpar,
-                    VIR_NODE_SEV_MAX_GUESTS,
-                    sev->max_guests) < 0)
+                              VIR_NODE_SEV_MAX_GUESTS,
+                              sev->max_guests) < 0)
         goto cleanup;

     if (virTypedParamsAddUInt(&sevParams, &n, &maxpar,
-                    VIR_NODE_SEV_MAX_ES_GUESTS,
-                    sev->max_es_guests) < 0)
+                              VIR_NODE_SEV_MAX_ES_GUESTS,
+                              sev->max_es_guests) < 0)
         goto cleanup;

     *params = g_steal_pointer(&sevParams);
-- 
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