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

Jim Meyering jim at meyering.net
Fri Sep 4 17:14:32 UTC 2009



>From 99610dd77b95914623bd78f2bcac5d15a6c87024 Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering at redhat.com>
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




More information about the libvir-list mailing list