mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
xen: Remove unused 'cfg'
Refactoring of the XML parser left few instances of the libxlDriverConfig object unused. Remove them. Signed-off-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
3dd91af01f
commit
35614b6022
@ -1547,7 +1547,6 @@ libxlDomainDefCheckABIStability(libxlDriverPrivatePtr driver,
|
||||
{
|
||||
virDomainDefPtr migratableDefSrc = NULL;
|
||||
virDomainDefPtr migratableDefDst = NULL;
|
||||
g_autoptr(libxlDriverConfig) cfg = libxlDriverConfigGet(driver);
|
||||
bool ret = false;
|
||||
|
||||
if (!(migratableDefSrc = virDomainDefCopy(src, driver->xmlopt, NULL, true)) ||
|
||||
|
@ -72,7 +72,6 @@ testCompareParseXML(const char *xlcfg, const char *xml, bool replaceVars)
|
||||
int ret = -1;
|
||||
virDomainDefPtr def = NULL;
|
||||
char *replacedXML = NULL;
|
||||
g_autoptr(libxlDriverConfig) cfg = libxlDriverConfigGet(driver);
|
||||
|
||||
if (VIR_ALLOC_N(gotxlcfgData, wrote) < 0)
|
||||
goto fail;
|
||||
|
@ -45,7 +45,6 @@ testCompareParseXML(const char *xmcfg, const char *xml)
|
||||
virConnectPtr conn = NULL;
|
||||
int wrote = 4096;
|
||||
virDomainDefPtr def = NULL;
|
||||
g_autoptr(libxlDriverConfig) cfg = libxlDriverConfigGet(driver);
|
||||
|
||||
if (VIR_ALLOC_N(gotxmcfgData, wrote) < 0)
|
||||
goto fail;
|
||||
|
Loading…
Reference in New Issue
Block a user