From: Lei Chen <chenlei0x@gmail.com>
To: chenlei0x@gmail.com, pbonzini@redhat.com
Cc: qemu-devel@nongnu.org, Lei Chen <lennychen@tencent.com>
Subject: [PATCH] vl: remove dead code from set_memory_options
Date: Thu, 3 Mar 2022 12:28:09 +0800 [thread overview]
Message-ID: <20220303042809.3437373-1-lennychen@tencent.com> (raw)
ram_size has already been set @sz before if statement, so we can remove
the dead code.
Signed-off-by: Lei Chen <lennychen@tencent.com>
---
softmmu/vl.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/softmmu/vl.c b/softmmu/vl.c
index 1fe028800f..adacbd7016 100644
--- a/softmmu/vl.c
+++ b/softmmu/vl.c
@@ -2105,10 +2105,6 @@ static void set_memory_options(MachineClass *mc)
sz = mc->fixup_ram_size(sz);
}
ram_size = sz;
- if (ram_size != sz) {
- error_report("ram size too large");
- exit(EXIT_FAILURE);
- }
maxram_size = ram_size;
--
2.27.0
reply other threads:[~2022-03-03 4:29 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20220303042809.3437373-1-lennychen@tencent.com \
--to=chenlei0x@gmail.com \
--cc=lennychen@tencent.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).