mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-13 08:05:16 +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;
|
||||
int ret;
|
||||
char *fullpath;
|
||||
virDomainSnapshotObjPtr snap = NULL;
|
||||
virDomainSnapshotDefPtr def = NULL;
|
||||
char ebuf[1024];
|
||||
|
||||
@ -1406,7 +1405,7 @@ static void qemuDomainSnapshotLoad(void *payload,
|
||||
continue;
|
||||
}
|
||||
|
||||
snap = virDomainSnapshotAssignDef(&vm->snapshots, def);
|
||||
virDomainSnapshotAssignDef(&vm->snapshots, def);
|
||||
|
||||
VIR_FREE(xmlStr);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user