qemudDomainGetSecurityLabel: avoid dead store to "type"

* src/qemu/qemu_driver.c (qemudDomainGetSecurityLabel): Remove store
and declaration.
This commit is contained in:
Jim Meyering 2010-04-07 17:51:56 +02:00
parent e26997f62b
commit 5874c6de5c

View File

@ -5564,7 +5564,6 @@ static int qemudDomainGetSecurityLabel(virDomainPtr dom, virSecurityLabelPtr sec
{
struct qemud_driver *driver = (struct qemud_driver *)dom->conn->privateData;
virDomainObjPtr vm;
const char *type;
int ret = -1;
qemuDriverLock(driver);
@ -5580,7 +5579,7 @@ static int qemudDomainGetSecurityLabel(virDomainPtr dom, virSecurityLabelPtr sec
goto cleanup;
}
if (!(type = virDomainVirtTypeToString(vm->def->virtType))) {
if (!virDomainVirtTypeToString(vm->def->virtType)) {
qemuReportError(VIR_ERR_INTERNAL_ERROR,
_("unknown virt type in domain definition '%d'"),
vm->def->virtType);