[PATCH libvirt-glib 08/15] Remove useless if before xmlFreeDoc

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

 



From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>

---
 libvirt-gconfig/libvirt-gconfig-xml-doc.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/libvirt-gconfig/libvirt-gconfig-xml-doc.c b/libvirt-gconfig/libvirt-gconfig-xml-doc.c
index 24d681b..fbb1a8b 100644
--- a/libvirt-gconfig/libvirt-gconfig-xml-doc.c
+++ b/libvirt-gconfig/libvirt-gconfig-xml-doc.c
@@ -83,8 +83,7 @@ static void gvir_config_xml_doc_finalize(GObject *object)
 
     g_debug("Finalize GVirConfigXmlDoc=%p", doc);
 
-    if (priv->doc)
-        xmlFreeDoc(priv->doc);
+    xmlFreeDoc(priv->doc);
 
     G_OBJECT_CLASS(gvir_config_xml_doc_parent_class)->finalize(object);
 }
-- 
1.7.6.4

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