mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 15:27:47 +00:00
libxl: Drop unused 'cfg' parameter from libxlDomainSaveImageOpen
Signed-off-by: Jim Fehlig <jfehlig@suse.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
b249fa7871
commit
8dab64bda4
@ -764,7 +764,6 @@ libxlDomainManagedSavePath(libxlDriverPrivate *driver, virDomainObj *vm)
|
|||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
libxlDomainSaveImageOpen(libxlDriverPrivate *driver,
|
libxlDomainSaveImageOpen(libxlDriverPrivate *driver,
|
||||||
libxlDriverConfig *cfg G_GNUC_UNUSED,
|
|
||||||
const char *from,
|
const char *from,
|
||||||
virDomainDef **ret_def,
|
virDomainDef **ret_def,
|
||||||
libxlSavefileHeader *ret_hdr)
|
libxlSavefileHeader *ret_hdr)
|
||||||
@ -1260,8 +1259,7 @@ libxlDomainStart(libxlDriverPrivate *driver,
|
|||||||
|
|
||||||
if (virFileExists(managed_save_path)) {
|
if (virFileExists(managed_save_path)) {
|
||||||
|
|
||||||
managed_save_fd = libxlDomainSaveImageOpen(driver, cfg,
|
managed_save_fd = libxlDomainSaveImageOpen(driver, managed_save_path,
|
||||||
managed_save_path,
|
|
||||||
&def, &hdr);
|
&def, &hdr);
|
||||||
if (managed_save_fd < 0)
|
if (managed_save_fd < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
@ -103,11 +103,10 @@ libxlDomainManagedSavePath(libxlDriverPrivate *driver,
|
|||||||
|
|
||||||
int
|
int
|
||||||
libxlDomainSaveImageOpen(libxlDriverPrivate *driver,
|
libxlDomainSaveImageOpen(libxlDriverPrivate *driver,
|
||||||
libxlDriverConfig *cfg,
|
|
||||||
const char *from,
|
const char *from,
|
||||||
virDomainDef **ret_def,
|
virDomainDef **ret_def,
|
||||||
libxlSavefileHeader *ret_hdr)
|
libxlSavefileHeader *ret_hdr)
|
||||||
ATTRIBUTE_NONNULL(4) ATTRIBUTE_NONNULL(5);
|
ATTRIBUTE_NONNULL(3) ATTRIBUTE_NONNULL(4);
|
||||||
|
|
||||||
int
|
int
|
||||||
libxlDomainDestroyInternal(libxlDriverPrivate *driver,
|
libxlDomainDestroyInternal(libxlDriverPrivate *driver,
|
||||||
|
@ -1942,7 +1942,6 @@ libxlDomainRestoreFlags(virConnectPtr conn, const char *from,
|
|||||||
const char *dxml, unsigned int flags)
|
const char *dxml, unsigned int flags)
|
||||||
{
|
{
|
||||||
libxlDriverPrivate *driver = conn->privateData;
|
libxlDriverPrivate *driver = conn->privateData;
|
||||||
libxlDriverConfig *cfg = libxlDriverConfigGet(driver);
|
|
||||||
virDomainObj *vm = NULL;
|
virDomainObj *vm = NULL;
|
||||||
virDomainDef *def = NULL;
|
virDomainDef *def = NULL;
|
||||||
libxlSavefileHeader hdr;
|
libxlSavefileHeader hdr;
|
||||||
@ -1961,7 +1960,7 @@ libxlDomainRestoreFlags(virConnectPtr conn, const char *from,
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
fd = libxlDomainSaveImageOpen(driver, cfg, from, &def, &hdr);
|
fd = libxlDomainSaveImageOpen(driver, from, &def, &hdr);
|
||||||
if (fd < 0)
|
if (fd < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
@ -1995,7 +1994,6 @@ libxlDomainRestoreFlags(virConnectPtr conn, const char *from,
|
|||||||
virReportSystemError(errno, "%s", _("cannot close file"));
|
virReportSystemError(errno, "%s", _("cannot close file"));
|
||||||
virDomainDefFree(def);
|
virDomainDefFree(def);
|
||||||
virDomainObjEndAPI(&vm);
|
virDomainObjEndAPI(&vm);
|
||||||
virObjectUnref(cfg);
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user