[libvirt] [PATCH] Remove redundand assignment

Martin Kletzander mkletzan at redhat.com
Thu Sep 24 08:22:55 UTC 2015


I initially added this in order to keep the code more error-prone to
following additions, but it seems it's still frowned upon.

Signed-off-by: Martin Kletzander <mkletzan at redhat.com>
---
Pushed as really, really trivial.

 src/qemu/qemu_domain.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c
index b57b9954b33f..12cc447180b5 100644
--- a/src/qemu/qemu_domain.c
+++ b/src/qemu/qemu_domain.c
@@ -831,7 +831,6 @@ qemuDomainObjPrivateXMLParse(xmlXPathContextPtr ctxt,
             goto error;
     }
     virObjectUnref(caps);
-    caps = NULL;
     VIR_FREE(tmp);

     return 0;
--
2.5.3




More information about the libvir-list mailing list