]> xenbits.xensource.com Git - libvirt.git/commitdiff
xenconfig: remove redunant parsing of device_model
authorJim Fehlig <jfehlig@suse.com>
Fri, 20 Mar 2015 00:02:28 +0000 (18:02 -0600)
committerJim Fehlig <jfehlig@suse.com>
Thu, 16 Apr 2015 22:11:01 +0000 (16:11 -0600)
device_model is parsed in xenParseOS(), then later in
xenParseConfigCommon().  <emulator> is not part of <os>,
so makes sense to remove the parsing in xenParseOS().

src/xenconfig/xen_common.c

index 82e8d3ad72a693f12b109244c9592c6037678e2b..883e31dc9b2824efb638b276287c1e72fcd6df03 100644 (file)
@@ -1029,9 +1029,6 @@ xenParseOS(virConfPtr conf, virDomainDefPtr def)
 {
     size_t i;
 
-    if (xenConfigCopyStringOpt(conf, "device_model", &def->emulator) < 0)
-        return -1;
-
     if (STREQ(def->os.type, "hvm")) {
         const char *boot;