From 7c7981eb798d8baec6cfbd9e038b9766b5ef4009 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Thu, 11 Sep 2014 18:49:02 +0200 Subject: [PATCH] qemu: Drop unused formatting of uuid The formatted UUID isn't used anywhere else in qemuDomainCheckDiskStartupPolicy. Drop it. --- src/qemu/qemu_domain.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c index 863ab09cb5..2a001c3774 100644 --- a/src/qemu/qemu_domain.c +++ b/src/qemu/qemu_domain.c @@ -2439,12 +2439,9 @@ qemuDomainCheckDiskStartupPolicy(virQEMUDriverPtr driver, size_t diskIndex, bool cold_boot) { - char uuid[VIR_UUID_STRING_BUFLEN]; int startupPolicy = vm->def->disks[diskIndex]->startupPolicy; int device = vm->def->disks[diskIndex]->device; - virUUIDFormat(vm->def->uuid, uuid); - switch ((virDomainStartupPolicy) startupPolicy) { case VIR_DOMAIN_STARTUP_POLICY_OPTIONAL: /* Once started with an optional disk, qemu saves its section