]> xenbits.xensource.com Git - libvirt.git/commitdiff
domain_conf: Resolve Coverity CHECKED_RETURN
authorJohn Ferlan <jferlan@redhat.com>
Wed, 29 Oct 2014 13:25:56 +0000 (09:25 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 1 Dec 2014 16:18:43 +0000 (11:18 -0500)
Commit id '0d36a5d05' modified the code slightly, but removed the
return value check thus causing Coverity to complain that this call
was the only one where the return value wasn't checked. Since nothing
was done previously if there was a failure, just use ignore_value here
to pacify Coverity

src/conf/domain_conf.c

index b0caa76ba908dfdfb496447309b02b5ec9c2e5ed..fe9b986bb8bc4ed48472f11c7f01f151b91bd0e6 100644 (file)
@@ -19237,7 +19237,7 @@ virDomainDefFormatInternal(virDomainDefPtr def,
         virDomainResourceDefFormat(buf, def->resource);
 
     if (def->sysinfo)
-        virSysinfoFormat(buf, def->sysinfo);
+        ignore_value(virSysinfoFormat(buf, def->sysinfo));
 
     if (def->os.bootloader) {
         virBufferEscapeString(buf, "<bootloader>%s</bootloader>\n",