aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJun Koi <junkoi2004@gmail.com>2010-04-09 19:27:13 +0900
committerBlue Swirl <blauwirbel@gmail.com>2010-04-11 20:15:01 +0000
commit24f7fb19b397c22ddb1582d8e489727f1dc53bef (patch)
treee96150bd651dda51b77cd84a59203021f802a70d
parentd7da2a10402f1644128b66414ca8f86bdea9ae7c (diff)
Cleanup dead code
This patch removes some dead code in exec.c Signed-off-by: Jun Koi <junkoi2004@gmail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
-rw-r--r--exec.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/exec.c b/exec.c
index 76163aa87f..43366acfb9 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) {