mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 19:11:16 +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
|
||||
libxlDomainSaveImageOpen(libxlDriverPrivate *driver,
|
||||
libxlDriverConfig *cfg G_GNUC_UNUSED,
|
||||
const char *from,
|
||||
virDomainDef **ret_def,
|
||||
libxlSavefileHeader *ret_hdr)
|
||||
@ -1260,8 +1259,7 @@ libxlDomainStart(libxlDriverPrivate *driver,
|
||||
|
||||
if (virFileExists(managed_save_path)) {
|
||||
|
||||
managed_save_fd = libxlDomainSaveImageOpen(driver, cfg,
|
||||
managed_save_path,
|
||||
managed_save_fd = libxlDomainSaveImageOpen(driver, managed_save_path,
|
||||
&def, &hdr);
|
||||
if (managed_save_fd < 0)
|
||||
goto cleanup;
|
||||
|
@ -103,11 +103,10 @@ libxlDomainManagedSavePath(libxlDriverPrivate *driver,
|
||||
|
||||
int
|
||||
libxlDomainSaveImageOpen(libxlDriverPrivate *driver,
|
||||
libxlDriverConfig *cfg,
|
||||
const char *from,
|
||||
virDomainDef **ret_def,
|
||||
libxlSavefileHeader *ret_hdr)
|
||||
ATTRIBUTE_NONNULL(4) ATTRIBUTE_NONNULL(5);
|
||||
ATTRIBUTE_NONNULL(3) ATTRIBUTE_NONNULL(4);
|
||||
|
||||
int
|
||||
libxlDomainDestroyInternal(libxlDriverPrivate *driver,
|
||||
|
@ -1942,7 +1942,6 @@ libxlDomainRestoreFlags(virConnectPtr conn, const char *from,
|
||||
const char *dxml, unsigned int flags)
|
||||
{
|
||||
libxlDriverPrivate *driver = conn->privateData;
|
||||
libxlDriverConfig *cfg = libxlDriverConfigGet(driver);
|
||||
virDomainObj *vm = NULL;
|
||||
virDomainDef *def = NULL;
|
||||
libxlSavefileHeader hdr;
|
||||
@ -1961,7 +1960,7 @@ libxlDomainRestoreFlags(virConnectPtr conn, const char *from,
|
||||
return -1;
|
||||
}
|
||||
|
||||
fd = libxlDomainSaveImageOpen(driver, cfg, from, &def, &hdr);
|
||||
fd = libxlDomainSaveImageOpen(driver, from, &def, &hdr);
|
||||
if (fd < 0)
|
||||
goto cleanup;
|
||||
|
||||
@ -1995,7 +1994,6 @@ libxlDomainRestoreFlags(virConnectPtr conn, const char *from,
|
||||
virReportSystemError(errno, "%s", _("cannot close file"));
|
||||
virDomainDefFree(def);
|
||||
virDomainObjEndAPI(&vm);
|
||||
virObjectUnref(cfg);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user