summaryrefslogtreecommitdiffstats
path: root/usr.sbin/kldxref
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/kldxref')
-rw-r--r--usr.sbin/kldxref/ef.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.sbin/kldxref/ef.c b/usr.sbin/kldxref/ef.c
index 276771d..b9686d3 100644
--- a/usr.sbin/kldxref/ef.c
+++ b/usr.sbin/kldxref/ef.c
@@ -532,7 +532,7 @@ ef_open(const char *filename, struct elf_file *efile, int verbose)
int error;
int phlen, res;
int nsegs;
- Elf_Phdr *phdr, *phdyn, *phphdr, *phlimit;
+ Elf_Phdr *phdr, *phdyn, *phlimit;
if (filename == NULL)
return EFTYPE;
@@ -576,7 +576,6 @@ ef_open(const char *filename, struct elf_file *efile, int verbose)
phlimit = phdr + hdr->e_phnum;
nsegs = 0;
phdyn = NULL;
- phphdr = NULL;
while (phdr < phlimit) {
if (verbose > 1)
ef_print_phdr(phdr);
@@ -590,7 +589,6 @@ ef_open(const char *filename, struct elf_file *efile, int verbose)
ef->ef_segs[nsegs++] = phdr;
break;
case PT_PHDR:
- phphdr = phdr;
break;
case PT_DYNAMIC:
phdyn = phdr;
OpenPOWER on IntegriCloud