Re: [PATCH 9/9] vz: don't fail unregister on sending event error

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

 



14-Jun-16 12:09, Nikolay Shirokovskiy пишет:


On 14.06.2016 11:46, Nikolay Shirokovskiy wrote:
Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@xxxxxxxxxxxxx>
---
  src/vz/vz_sdk.c | 21 +++++++++------------
  1 file changed, 9 insertions(+), 12 deletions(-)

diff --git a/src/vz/vz_sdk.c b/src/vz/vz_sdk.c
index 612a059..12691ba 100644
--- a/src/vz/vz_sdk.c
+++ b/src/vz/vz_sdk.c
@@ -1669,21 +1669,19 @@ prlsdkUpdateDomain(vzDriverPtr driver, virDomainObjPtr dom)
      return prlsdkLoadDomain(driver, pdom->sdkdom, dom) ? 0 : -1;
  }
-static int prlsdkSendEvent(vzDriverPtr driver,
-                           virDomainObjPtr dom,
-                           virDomainEventType lvEventType,
-                           int lvEventTypeDetails)
+static void
+prlsdkSendEvent(vzDriverPtr driver,
+                virDomainObjPtr dom,
+                virDomainEventType lvEventType,
+                int lvEventTypeDetails)
  {
-    virObjectEventPtr event = NULL;
+    virObjectEventPtr event;
event = virDomainEventLifecycleNewFromObj(dom,
                                                lvEventType,
                                                lvEventTypeDetails);
      if (!event)
-        return -1;
Phhh, if (event) of course.

ACK with phhh

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[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]