[libvirt] [PATCH] xend_internal.c: Remove two dead stores to "ret"

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

 




>From 99610dd77b95914623bd78f2bcac5d15a6c87024 Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering@xxxxxxxxxx>
Date: Fri, 4 Sep 2009 19:14:09 +0200
Subject: [PATCH] xend_internal.c: Remove two dead stores to "ret"

* src/xend_internal.c (xenDaemonCreateXML): Don't set "ret" after
last use.
---
 src/xend_internal.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/xend_internal.c b/src/xend_internal.c
index cf45cd6..2fa08f1 100644
--- a/src/xend_internal.c
+++ b/src/xend_internal.c
@@ -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);
--
1.6.4.2.409.g85dc3

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