All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eduardo Habkost <ehabkost@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>,
	Marcel Apfelbaum <marcel.apfelbaum@gmail.com>,
	Peter Maydell <peter.maydell@linaro.org>,
	Igor Mammedov <imammedo@redhat.com>,
	Richard Henderson <rth@twiddle.net>,
	qemu-devel@nongnu.org
Cc: Wei Yang <richardw.yang@linux.intel.com>,
	David Hildenbrand <david@redhat.com>
Subject: [PULL 12/18] memory-device: not necessary to use goto for the last check
Date: Tue, 15 Oct 2019 18:37:39 -0300	[thread overview]
Message-ID: <20191015213745.22174-13-ehabkost@redhat.com> (raw)
In-Reply-To: <20191015213745.22174-1-ehabkost@redhat.com>

From: Wei Yang <richardw.yang@linux.intel.com>

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 | 1 -
 1 file changed, 1 deletion(-)

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);
-- 
2.21.0



  parent reply	other threads:[~2019-10-15 21:51 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-15 21:37 [PULL 00/18] x86 and machine queue, 2019-10-15 Eduardo Habkost
2019-10-15 21:37 ` [PULL 01/18] tests: add qtest_qmp_device_add_qdict() helper Eduardo Habkost
2019-10-15 21:37 ` [PULL 02/18] tests: cpu-plug-test: fix device_add for pc/q35 machines Eduardo Habkost
2019-10-15 21:37 ` [PULL 03/18] numa: Introduce MachineClass::auto_enable_numa for implicit NUMA node Eduardo Habkost
2019-10-15 21:37 ` [PULL 04/18] hw/acpi/piix4: Convert reset handler to DeviceReset Eduardo Habkost
2019-10-15 21:37 ` [PULL 05/18] hw/isa/piix4: " Eduardo Habkost
2019-10-15 21:37 ` [PULL 06/18] hw/ide/piix: " Eduardo Habkost
2019-10-15 21:37 ` [PULL 07/18] hw/ide/sii3112: " Eduardo Habkost
2019-10-15 21:37 ` [PULL 08/18] hw/ide/via82c: " Eduardo Habkost
2019-10-15 21:37 ` [PULL 09/18] hw/isa/vt82c686: " Eduardo Habkost
2019-10-15 21:37 ` [PULL 10/18] hw/input/lm832x: " Eduardo Habkost
2019-10-15 21:37 ` [PULL 11/18] hw/misc/vmcoreinfo: Add comment about reset handler Eduardo Habkost
2019-10-15 21:37 ` Eduardo Habkost [this message]
2019-10-15 21:37 ` [PULL 13/18] memory-device: break the loop if tmp exceed the hinted range Eduardo Habkost
2019-10-15 21:37 ` [PULL 14/18] target/i386: clean up comments over 80 chars per line Eduardo Habkost
2019-10-15 21:37 ` [PULL 15/18] target/i386: drop the duplicated definition of cpuid AVX512_VBMI macro Eduardo Habkost
2019-10-15 21:37 ` [PULL 16/18] i386: Fix legacy guest with xsave panic on host kvm without update cpuid Eduardo Habkost
2019-10-15 21:37 ` [PULL 17/18] i386: Omit all-zeroes entries from KVM CPUID table Eduardo Habkost
2019-10-15 21:37 ` [PULL 18/18] target/i386: Add Snowridge-v2 (no MPX) CPU model Eduardo Habkost
2019-10-18  9:56 ` [PULL 00/18] x86 and machine queue, 2019-10-15 Peter Maydell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191015213745.22174-13-ehabkost@redhat.com \
    --to=ehabkost@redhat.com \
    --cc=david@redhat.com \
    --cc=imammedo@redhat.com \
    --cc=marcel.apfelbaum@gmail.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=richardw.yang@linux.intel.com \
    --cc=rth@twiddle.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.