From: Wei Yang Date: Tue, 30 Jul 2019 00:37:39 +0000 (+0800) Subject: memory-device: not necessary to use goto for the last check X-Git-Tag: v4.2.0-rc0~52^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fc2db8501f3bfa57000c625c1f8b304e4a15976e;p=thirdparty%2Fqemu.git memory-device: not necessary to use goto for the last check We are already at the last condition check. Signed-off-by: Wei Yang Reviewed-by: Igor Mammedov Reviewed-by: David Hildenbrand Message-Id: <20190730003740.20694-2-richardw.yang@linux.intel.com> Signed-off-by: Eduardo Habkost --- diff --git a/hw/mem/memory-device.c b/hw/mem/memory-device.c index 53953fdc3aa..5029890e06b 100644 --- a/hw/mem/memory-device.c +++ b/hw/mem/memory-device.c @@ -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);