提交 0e4d4afb 编写于 作者: D Daniel P. Berrange

Remove unused 'target' field in virDomainHostdevDef

The virDomainHostdevDef struct contains a 'char *target'
field. This is set to 'NULL' when parsing XML and never
used / set anywhere else. Clearly it is bogus & unused

* src/conf/domain_conf.c, src/conf/domain_conf.h: Remove
  target from virDomainHostdevDef
上级 584ce634
...@@ -893,7 +893,6 @@ void virDomainHostdevDefFree(virDomainHostdevDefPtr def) ...@@ -893,7 +893,6 @@ void virDomainHostdevDefFree(virDomainHostdevDefPtr def)
if (!def) if (!def)
return; return;
VIR_FREE(def->target);
virDomainDeviceInfoClear(&def->info); virDomainDeviceInfoClear(&def->info);
VIR_FREE(def); VIR_FREE(def);
} }
...@@ -4774,7 +4773,6 @@ virDomainHostdevDefParseXML(const xmlNodePtr node, ...@@ -4774,7 +4773,6 @@ virDomainHostdevDefParseXML(const xmlNodePtr node,
virReportOOMError(); virReportOOMError();
return NULL; return NULL;
} }
def->target = NULL;
mode = virXMLPropString(node, "mode"); mode = virXMLPropString(node, "mode");
if (mode) { if (mode) {
......
...@@ -792,7 +792,6 @@ struct _virDomainHostdevDef { ...@@ -792,7 +792,6 @@ struct _virDomainHostdevDef {
int dummy; int dummy;
} caps; } caps;
} source; } source;
char* target;
int bootIndex; int bootIndex;
virDomainDeviceInfo info; /* Guest address */ virDomainDeviceInfo info; /* Guest address */
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册