mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-27 23:15:18 +00:00
qemuDomainSnapshotLoad: avoid dead store
* src/qemu/qemu_driver.c (qemuDomainSnapshotLoad): Remove dead store into "snap", as well as its declaration.
This commit is contained in:
parent
dd1a186f77
commit
60466abbd6
@ -1354,7 +1354,6 @@ static void qemuDomainSnapshotLoad(void *payload,
|
|||||||
char *xmlStr;
|
char *xmlStr;
|
||||||
int ret;
|
int ret;
|
||||||
char *fullpath;
|
char *fullpath;
|
||||||
virDomainSnapshotObjPtr snap = NULL;
|
|
||||||
virDomainSnapshotDefPtr def = NULL;
|
virDomainSnapshotDefPtr def = NULL;
|
||||||
char ebuf[1024];
|
char ebuf[1024];
|
||||||
|
|
||||||
@ -1406,7 +1405,7 @@ static void qemuDomainSnapshotLoad(void *payload,
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
snap = virDomainSnapshotAssignDef(&vm->snapshots, def);
|
virDomainSnapshotAssignDef(&vm->snapshots, def);
|
||||||
|
|
||||||
VIR_FREE(xmlStr);
|
VIR_FREE(xmlStr);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user