]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
libxl: remove redundant calls to libxl_evdisable_domain_death
authorJim Fehlig <jfehlig@suse.com>
Thu, 12 Feb 2015 17:42:25 +0000 (10:42 -0700)
committerJim Fehlig <jfehlig@suse.com>
Thu, 5 Mar 2015 16:05:34 +0000 (09:05 -0700)
Domain death watch is already disabled in libxlDomainCleanup.  No
need to disable it a second and third time.

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
src/libxl/libxl_domain.c

index 21c41d7424daecc876485215e877586e36ad2fa9..e186c5317c9a55cff34db15bc7120e2db7daca7d 100644 (file)
@@ -439,9 +439,6 @@ libxlDomainObjPrivateDispose(void *obj)
 {
     libxlDomainObjPrivatePtr priv = obj;
 
-    if (priv->deathW)
-        libxl_evdisable_domain_death(priv->ctx, priv->deathW);
-
     libxlDomainObjFreeJob(priv);
     virChrdevFree(priv->devs);
     libxl_ctx_free(priv->ctx);
@@ -456,11 +453,6 @@ libxlDomainObjPrivateFree(void *data)
 {
     libxlDomainObjPrivatePtr priv = data;
 
-    if (priv->deathW) {
-        libxl_evdisable_domain_death(priv->ctx, priv->deathW);
-        priv->deathW = NULL;
-    }
-
     virObjectUnref(priv);
 }