From: Blue Swirl <blauwirbel@gmail.com>
To: Jun Koi <junkoi2004@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] Cleanup dead code
Date: Sun, 11 Apr 2010 23:25:20 +0300 [thread overview]
Message-ID: <m2mf43fc5581004111325j1e78a82ai2fbe955d52973777@mail.gmail.com> (raw)
In-Reply-To: <y2kfdaac4d51004090327z2db0c37rde6d72a93edcb03a@mail.gmail.com>
Thanks, applied.
On 4/9/10, Jun Koi <junkoi2004@gmail.com> wrote:
> This patch removes some dead code in exec.c
>
> Signed-off-by: Jun Koi <junkoi2004@gmail.com>
>
> diff --git a/exec.c b/exec.c
> index 76163aa..43366ac 100644
> --- a/exec.c
> +++ b/exec.c
> @@ -2884,15 +2884,12 @@ void *qemu_get_ram_ptr(ram_addr_t addr)
> (typically a TLB entry) back to a ram offset. */
> ram_addr_t qemu_ram_addr_from_host(void *ptr)
> {
> - RAMBlock *prev;
> RAMBlock *block;
> uint8_t *host = ptr;
>
> - prev = NULL;
> block = ram_blocks;
> while (block && (block->host > host
> || block->host + block->length <= host)) {
> - prev = block;
> block = block->next;
> }
> if (!block) {
>
>
>
prev parent reply other threads:[~2010-04-11 20:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-09 10:27 [Qemu-devel] [PATCH] Cleanup dead code Jun Koi
2010-04-11 20:25 ` Blue Swirl [this message]
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=m2mf43fc5581004111325j1e78a82ai2fbe955d52973777@mail.gmail.com \
--to=blauwirbel@gmail.com \
--cc=junkoi2004@gmail.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).