We are already at the last condition check. Signed-off-by: Wei Yang <richardw.y...@linux.intel.com> Reviewed-by: Igor Mammedov <imamm...@redhat.com> Reviewed-by: David Hildenbrand <da...@redhat.com> --- hw/mem/memory-device.c | 1 - 1 file changed, 1 deletion(-)
diff --git a/hw/mem/memory-device.c b/hw/mem/memory-device.c index 5f2c408036..df3261b32a 100644 --- a/hw/mem/memory-device.c +++ b/hw/mem/memory-device.c @@ -186,7 +186,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); -- 2.17.1