]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
conf: remove unused assignment statement in virSysinfoBaseBoardParseXML
authorWang King <king.wang@huawei.com>
Thu, 13 Apr 2017 02:16:43 +0000 (10:16 +0800)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 13 Apr 2017 12:14:54 +0000 (08:14 -0400)
Assigning value 0 to @nboards in success path, that stored value is not used.

src/conf/domain_conf.c

index d660c06e0fd0d617975cfd92fc161f70e250e078..0dbd45f45fbc0be35a41155acb6a38300125f489 100644 (file)
@@ -13089,7 +13089,6 @@ virSysinfoBaseBoardParseXML(xmlXPathContextPtr ctxt,
     *baseBoard = boards;
     *nbaseBoard = nboards;
     boards = NULL;
-    nboards = 0;
     ret = 0;
  cleanup:
     VIR_FREE(boards);