aboutsummaryrefslogtreecommitdiff
path: root/linux-user/flatload.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2011-06-16 17:37:12 +0100
committerRiku Voipio <riku.voipio@iki.fi>2011-06-21 20:30:10 +0300
commit3002fa8472b1b9293cac785ca032df727540f85d (patch)
tree8fe56a217b22c757f1651a562f06676d412107b1 /linux-user/flatload.c
parente7730352fb63879da816893d868e6d77be9594a3 (diff)
flatload: memp was a write-only variable
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
Diffstat (limited to 'linux-user/flatload.c')
-rw-r--r--linux-user/flatload.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/linux-user/flatload.c b/linux-user/flatload.c
index 6fb78f544f..1062da3852 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