mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-30 09:53:10 +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 migratableDefSrc = NULL;
|
||||||
virDomainDefPtr migratableDefDst = NULL;
|
virDomainDefPtr migratableDefDst = NULL;
|
||||||
g_autoptr(libxlDriverConfig) cfg = libxlDriverConfigGet(driver);
|
|
||||||
bool ret = false;
|
bool ret = false;
|
||||||
|
|
||||||
if (!(migratableDefSrc = virDomainDefCopy(src, driver->xmlopt, NULL, true)) ||
|
if (!(migratableDefSrc = virDomainDefCopy(src, driver->xmlopt, NULL, true)) ||
|
||||||
|
@ -72,7 +72,6 @@ testCompareParseXML(const char *xlcfg, const char *xml, bool replaceVars)
|
|||||||
int ret = -1;
|
int ret = -1;
|
||||||
virDomainDefPtr def = NULL;
|
virDomainDefPtr def = NULL;
|
||||||
char *replacedXML = NULL;
|
char *replacedXML = NULL;
|
||||||
g_autoptr(libxlDriverConfig) cfg = libxlDriverConfigGet(driver);
|
|
||||||
|
|
||||||
if (VIR_ALLOC_N(gotxlcfgData, wrote) < 0)
|
if (VIR_ALLOC_N(gotxlcfgData, wrote) < 0)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
@ -45,7 +45,6 @@ testCompareParseXML(const char *xmcfg, const char *xml)
|
|||||||
virConnectPtr conn = NULL;
|
virConnectPtr conn = NULL;
|
||||||
int wrote = 4096;
|
int wrote = 4096;
|
||||||
virDomainDefPtr def = NULL;
|
virDomainDefPtr def = NULL;
|
||||||
g_autoptr(libxlDriverConfig) cfg = libxlDriverConfigGet(driver);
|
|
||||||
|
|
||||||
if (VIR_ALLOC_N(gotxmcfgData, wrote) < 0)
|
if (VIR_ALLOC_N(gotxmcfgData, wrote) < 0)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
Loading…
Reference in New Issue
Block a user