]> xenbits.xensource.com Git - libvirt.git/commit
conf: cpu: Refactor parsing of vendor_id and fallback attributes
authorPeter Krempa <pkrempa@redhat.com>
Mon, 17 Dec 2012 10:49:33 +0000 (11:49 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 17 Dec 2012 16:27:56 +0000 (17:27 +0100)
commit4a9c1793257c9e545fa41cf010a32126180de9e9
tree37b20463c4b33e6efc58925c1e4feb3ce0bc4b20
parentfb49ffc3bb7c3e89a636c3db8f879f0705ada0dc
conf: cpu: Refactor parsing of vendor_id and fallback attributes

This patch simplifies the code that parses the fallback and vendor_id
attributes from the domain xml cpu definition.

Changes done:
- free temp variables in the cleanup section instead of local use
- remove checking for presence of the attribute to directly getting the
value (saving call to virXPathBoolean)
- replace loop used to check for ',' in the vendor_id string with strchr
src/conf/cpu_conf.c