diff options
author | Jun Koi <junkoi2004@gmail.com> | 2010-04-09 19:27:13 +0900 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-04-11 20:15:01 +0000 |
commit | 6b47cab7d5e097493da0af34d1d887155483c759 (patch) | |
tree | e96150bd651dda51b77cd84a59203021f802a70d /exec.c | |
parent | 0cde243f935b64ffa18b07f8c6ffde07c5c51ba0 (diff) | |
download | qemu-6b47cab7d5e097493da0af34d1d887155483c759.tar.gz qemu-6b47cab7d5e097493da0af34d1d887155483c759.tar.bz2 qemu-6b47cab7d5e097493da0af34d1d887155483c759.zip |
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>
Diffstat (limited to 'exec.c')
-rw-r--r-- | exec.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -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) { |