]> Git Repo - qemu.git/commitdiff
flatload: memp was a write-only variable
authorJuan Quintela <[email protected]>
Thu, 16 Jun 2011 16:37:12 +0000 (17:37 +0100)
committerRiku Voipio <[email protected]>
Tue, 21 Jun 2011 17:30:10 +0000 (20:30 +0300)
Signed-off-by: Juan Quintela <[email protected]>
Signed-off-by: Peter Maydell <[email protected]>
Signed-off-by: Riku Voipio <[email protected]>
linux-user/flatload.c

index 6fb78f544f6ca9728eb366caed1e783235231ae0..1062da3852106effbb6c6a259429b39c6e0b0e3a 100644 (file)
@@ -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
This page took 0.036099 seconds and 4 git commands to generate.