[libgovirt] ovirt-proxy: Fix indentation in function ovirt_proxy_call_async_data_free()



commit 2c4252845047c6f5fe128065e2c51a768a438f4c
Author: Eduardo Lima (Etrunko) <etrunko redhat com>
Date:   Wed Aug 28 18:38:00 2019 -0300

    ovirt-proxy: Fix indentation in function ovirt_proxy_call_async_data_free()
    
    Signed-off-by: Eduardo Lima (Etrunko) <etrunko redhat com>

 govirt/ovirt-proxy.c | 36 ++++++++++++++++++------------------
 1 file changed, 18 insertions(+), 18 deletions(-)
---
diff --git a/govirt/ovirt-proxy.c b/govirt/ovirt-proxy.c
index d335825..97830be 100644
--- a/govirt/ovirt-proxy.c
+++ b/govirt/ovirt-proxy.c
@@ -204,26 +204,26 @@ typedef struct {
 
 static void ovirt_proxy_call_async_data_free(OvirtProxyCallAsyncData *data)
 {
-        if (data->destroy_call_data != NULL) {
-            data->destroy_call_data(data->call_user_data);
-        }
+    if (data->destroy_call_data != NULL) {
+        data->destroy_call_data(data->call_user_data);
+    }
 
-        g_clear_object(&data->proxy);
-        g_clear_object(&data->result);
-
-        if ((data->cancellable != NULL) && (data->cancellable_cb_id != 0)) {
-            if (g_cancellable_is_cancelled(data->cancellable)) {
-                /* Cancellable has already been cancelled, we don't need to use
-                 * g_cancellable_disconnect() to disconnect the signal handler
-                 * as we know the 'cancelled' signal is no longer going to be emitted
-                 */
-                g_signal_handler_disconnect(data->cancellable, data->cancellable_cb_id);
-            } else {
-                g_cancellable_disconnect(data->cancellable, data->cancellable_cb_id);
-            }
+    g_clear_object(&data->proxy);
+    g_clear_object(&data->result);
+
+    if ((data->cancellable != NULL) && (data->cancellable_cb_id != 0)) {
+        if (g_cancellable_is_cancelled(data->cancellable)) {
+            /* Cancellable has already been cancelled, we don't need to use
+             * g_cancellable_disconnect() to disconnect the signal handler
+             * as we know the 'cancelled' signal is no longer going to be emitted
+             */
+            g_signal_handler_disconnect(data->cancellable, data->cancellable_cb_id);
+        } else {
+            g_cancellable_disconnect(data->cancellable, data->cancellable_cb_id);
         }
-        g_clear_object(&data->cancellable);
-        g_slice_free(OvirtProxyCallAsyncData, data);
+    }
+    g_clear_object(&data->cancellable);
+    g_slice_free(OvirtProxyCallAsyncData, data);
 }
 
 static void


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