[PATCH 08/11] CH: use virDomainObjClearJob() instead of virCHDomainObjFreeJob()

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

 



Signed-off-by: Kristina Hanicova <khanicov@xxxxxxxxxx>
---
 src/ch/ch_domain.c | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/src/ch/ch_domain.c b/src/ch/ch_domain.c
index 499d31cf4a..817b1176d5 100644
--- a/src/ch/ch_domain.c
+++ b/src/ch/ch_domain.c
@@ -32,12 +32,6 @@
 
 VIR_LOG_INIT("ch.ch_domain");
 
-static void
-virCHDomainObjFreeJob(virCHDomainObjPrivate *priv)
-{
-    ignore_value(virCondDestroy(&priv->job.cond));
-}
-
 /*
  * obj must be locked before calling, virCHDriver must NOT be locked
  *
@@ -129,7 +123,7 @@ virCHDomainObjPrivateAlloc(void *opaque)
     }
 
     if (!(priv->chrdevs = virChrdevAlloc())) {
-        virCHDomainObjFreeJob(priv);
+        virDomainObjClearJob(&priv->job);
         g_free(priv);
         return NULL;
     }
@@ -144,7 +138,7 @@ virCHDomainObjPrivateFree(void *data)
     virCHDomainObjPrivate *priv = data;
 
     virChrdevFree(priv->chrdevs);
-    virCHDomainObjFreeJob(priv);
+    virDomainObjClearJob(&priv->job);
     g_free(priv->machineName);
     g_free(priv);
 }
-- 
2.37.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