[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 03/14] flatload: memp was a write-only variable
From: |
Juan Quintela |
Subject: |
[Qemu-devel] [PATCH 03/14] flatload: memp was a write-only variable |
Date: |
Thu, 2 Jun 2011 13:53:38 +0200 |
Signed-off-by: Juan Quintela <address@hidden>
---
linux-user/flatload.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/linux-user/flatload.c b/linux-user/flatload.c
index cd7af7c..580bc21 100644
--- a/linux-user/flatload.c
+++ b/linux-user/flatload.c
@@ -379,7 +379,6 @@ static int load_flat_file(struct linux_binprm * bprm,
abi_long result;
abi_ulong realdatastart = 0;
abi_ulong text_len, data_len, bss_len, stack_len, flags;
- abi_ulong memp = 0; /* for finding the brk area */
abi_ulong extra;
abi_ulong reloc = 0, rp;
int i, rev, relocs = 0;
@@ -491,7 +490,6 @@ static int load_flat_file(struct linux_binprm * bprm,
}
reloc = datapos + (ntohl(hdr->reloc_start) - text_len);
- memp = realdatastart;
} else {
@@ -506,7 +504,6 @@ static int load_flat_file(struct linux_binprm * bprm,
realdatastart = textpos + ntohl(hdr->data_start);
datapos = realdatastart + indx_len;
reloc = (textpos + ntohl(hdr->reloc_start) + indx_len);
- memp = textpos;
#ifdef CONFIG_BINFMT_ZFLAT
#error code needs checking
--
1.7.5.2
- [Qemu-devel] [PATCH 00/14] More gcc 4.6 warnings fixes, Juan Quintela, 2011/06/02
- [Qemu-devel] [PATCH 01/14] kvm: remove fop write only variable, Juan Quintela, 2011/06/02
- [Qemu-devel] [PATCH 02/14] tcg: define and set call_type only when it is used, Juan Quintela, 2011/06/02
- [Qemu-devel] [PATCH 04/14] xen: pentry is not used in this function, Juan Quintela, 2011/06/02
- [Qemu-devel] [PATCH 03/14] flatload: memp was a write-only variable,
Juan Quintela <=
- [Qemu-devel] [PATCH 06/14] flatload: end_code was only used in a debug message, Juan Quintela, 2011/06/02
- [Qemu-devel] [PATCH 05/14] linuxload: id_change was a write only variable, Juan Quintela, 2011/06/02
- [Qemu-devel] [PATCH 07/14] alpha: fn2 was a write only variable, Juan Quintela, 2011/06/02
- [Qemu-devel] [PATCH 08/14] syscall: really return ret code, Juan Quintela, 2011/06/02
- [Qemu-devel] [PATCH 09/14] exec: last_first_tb was only used in !ONLY_USER case, Juan Quintela, 2011/06/02