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:
Jim Meyering 2010-04-07 20:22:20 +02:00
parent dd1a186f77
commit 60466abbd6

View File

@ -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);
} }