diff options
author | Wei Yang <richardw.yang@linux.intel.com> | 2019-07-30 08:37:39 +0800 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2019-10-15 18:18:08 -0300 |
commit | fc2db8501f3bfa57000c625c1f8b304e4a15976e (patch) | |
tree | efc7ef2b75b7bfd3c90c2c31255dfe1778b43d26 /hw/mem | |
parent | 88552b16f2a11a51323b8a4d643e73332d89d7ef (diff) |
memory-device: not necessary to use goto for the last check
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>
Diffstat (limited to 'hw/mem')
-rw-r--r-- | hw/mem/memory-device.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/mem/memory-device.c b/hw/mem/memory-device.c index 53953fdc3a..5029890e06 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); |