]> git.proxmox.com Git - mirror_qemu.git/commitdiff
memory-device: not necessary to use goto for the last check
authorWei Yang <richardw.yang@linux.intel.com>
Tue, 30 Jul 2019 00:37:39 +0000 (08:37 +0800)
committerEduardo Habkost <ehabkost@redhat.com>
Tue, 15 Oct 2019 21:18:08 +0000 (18:18 -0300)
We are already at the last condition check.

Signed-off-by: Wei Yang <richardw.yang@linux.intel.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Message-Id: <20190730003740.20694-2-richardw.yang@linux.intel.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
hw/mem/memory-device.c

index 53953fdc3aa89bcb56e273ef93daab5371b24b2c..5029890e06b21859d0c7a5b2b863c0b675d0acd1 100644 (file)
@@ -185,7 +185,6 @@ static uint64_t memory_device_get_free_addr(MachineState *ms,
     if (!range_contains_range(&as, &new)) {
         error_setg(errp, "could not find position in guest address space for "
                    "memory device - memory fragmented due to alignments");
-        goto out;
     }
 out:
     g_slist_free(list);