[PATCH 4/4] CH: use virDomainObjResetJob()

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

 



This patch removes and replaces virCHDomainObjResetJob() with
general virDomainObjResetJob().

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

diff --git a/src/ch/ch_domain.c b/src/ch/ch_domain.c
index ae53c6fe05..499d31cf4a 100644
--- a/src/ch/ch_domain.c
+++ b/src/ch/ch_domain.c
@@ -32,15 +32,6 @@
 
 VIR_LOG_INIT("ch.ch_domain");
 
-static void
-virCHDomainObjResetJob(virCHDomainObjPrivate *priv)
-{
-    virDomainJobObj *job = &priv->job;
-
-    job->active = VIR_JOB_NONE;
-    job->owner = 0;
-}
-
 static void
 virCHDomainObjFreeJob(virCHDomainObjPrivate *priv)
 {
@@ -88,7 +79,7 @@ virCHDomainObjBeginJob(virDomainObj *obj, virDomainJob job)
         }
     }
 
-    virCHDomainObjResetJob(priv);
+    virDomainObjResetJob(&priv->job);
 
     VIR_DEBUG("Starting job: %s", virDomainJobTypeToString(job));
     priv->job.active = job;
@@ -112,7 +103,7 @@ virCHDomainObjEndJob(virDomainObj *obj)
     VIR_DEBUG("Stopping job: %s",
               virDomainJobTypeToString(job));
 
-    virCHDomainObjResetJob(priv);
+    virDomainObjResetJob(&priv->job);
     virCondSignal(&priv->job.cond);
 }
 
-- 
2.35.3




[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