This patch removes and replaces virLXCDomainObjResetJob() with
general virDomainObjResetJob().
Signed-off-by: Kristina Hanicova <khanicov(a)redhat.com>
---
src/lxc/lxc_domain.c | 13 ++-----------
1 file changed, 2 insertions(+), 11 deletions(-)
diff --git a/src/lxc/lxc_domain.c b/src/lxc/lxc_domain.c
index fed4ae088a..6f048a128a 100644
--- a/src/lxc/lxc_domain.c
+++ b/src/lxc/lxc_domain.c
@@ -35,15 +35,6 @@
VIR_LOG_INIT("lxc.lxc_domain");
-static void
-virLXCDomainObjResetJob(virLXCDomainObjPrivate *priv)
-{
- virDomainJobObj *job = &priv->job;
-
- job->active = VIR_JOB_NONE;
- job->owner = 0;
-}
-
static void
virLXCDomainObjFreeJob(virLXCDomainObjPrivate *priv)
{
@@ -82,7 +73,7 @@ virLXCDomainObjBeginJob(virLXCDriver *driver G_GNUC_UNUSED,
goto error;
}
- virLXCDomainObjResetJob(priv);
+ virDomainObjResetJob(&priv->job);
VIR_DEBUG("Starting job: %s", virDomainJobTypeToString(job));
priv->job.active = job;
@@ -124,7 +115,7 @@ virLXCDomainObjEndJob(virLXCDriver *driver G_GNUC_UNUSED,
VIR_DEBUG("Stopping job: %s",
virDomainJobTypeToString(job));
- virLXCDomainObjResetJob(priv);
+ virDomainObjResetJob(&priv->job);
virCondSignal(&priv->job.cond);
}
--
2.35.3