Remove write-only variable.

MFC after:	3 days
This commit is contained in:
Konstantin Belousov 2012-03-16 19:09:34 +00:00
parent 57e58a39d6
commit 31f7a2032e

View file

@ -65,7 +65,6 @@ map_object(int fd, const char *path, const struct stat *sb)
Elf_Phdr *phtls;
caddr_t mapbase;
size_t mapsize;
Elf_Off base_offset;
Elf_Addr base_vaddr;
Elf_Addr base_vlimit;
caddr_t base_addr;
@ -174,7 +173,6 @@ map_object(int fd, const char *path, const struct stat *sb)
* Map the entire address space of the object, to stake out our
* contiguous region, and to establish the base address for relocation.
*/
base_offset = trunc_page(segs[0]->p_offset);
base_vaddr = trunc_page(segs[0]->p_vaddr);
base_vlimit = round_page(segs[nsegs]->p_vaddr + segs[nsegs]->p_memsz);
mapsize = base_vlimit - base_vaddr;