]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Remove pointless check for !ret in virDomainNetDefCoalesceParseXML
authorMartin Kletzander <mkletzan@redhat.com>
Sat, 22 Apr 2017 16:34:30 +0000 (18:34 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Sat, 22 Apr 2017 16:36:07 +0000 (18:36 +0200)
It was left there after removing a macro it was part of in first
version or so.  Now it will always be NULL.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
src/conf/domain_conf.c

index 4a777d67bfad53a4c92d441eaa98554407f28213..7d3cf178eaf65e16730bcac7a99f21af35731f53 100644 (file)
@@ -6789,7 +6789,7 @@ virDomainNetDefCoalesceParseXML(xmlNodePtr node,
     if (!str)
         goto cleanup;
 
-    if (!ret && VIR_ALLOC(ret) < 0)
+    if (VIR_ALLOC(ret) < 0)
         goto cleanup;
 
     if (virStrToLong_ullp(str, NULL, 10, &tmp) < 0) {