]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
xend_internal.c: Remove two dead stores to "ret"
authorJim Meyering <meyering@redhat.com>
Fri, 4 Sep 2009 17:14:09 +0000 (19:14 +0200)
committerJim Meyering <meyering@redhat.com>
Mon, 7 Sep 2009 15:21:23 +0000 (17:21 +0200)
* src/xend_internal.c (xenDaemonCreateXML): Don't set "ret" after
last use.

src/xend_internal.c

index cf45cd69078e685fbb76851b907afebff1c0cca2..2fa08f1b6842a05c975458fa0863e6958fba5f8a 100644 (file)
@@ -4028,10 +4028,10 @@ xenDaemonCreateXML(virConnectPtr conn, const char *xmlDesc,
     if (!(dom = virDomainLookupByName(conn, def->name)))
         goto error;
 
-    if ((ret = xend_wait_for_devices(conn, def->name)) < 0)
+    if (xend_wait_for_devices(conn, def->name) < 0)
         goto error;
 
-    if ((ret = xenDaemonDomainResume(dom)) < 0)
+    if (xenDaemonDomainResume(dom) < 0)
         goto error;
 
     virDomainDefFree(def);