svn commit: r237415 - stable/9/usr.sbin/kldxref
Eitan Adler
eadler at FreeBSD.org
Fri Jun 22 05:23:40 UTC 2012
Author: eadler
Date: Fri Jun 22 05:23:39 2012
New Revision: 237415
URL: http://svn.freebsd.org/changeset/base/237415
Log:
MFC r237258:
Remove variables which are initialized but never used thereafter reported by gcc46 warning
Approved by: cperciva (implicit)
Modified:
stable/9/usr.sbin/kldxref/ef.c
Directory Properties:
stable/9/usr.sbin/kldxref/ (props changed)
Modified: stable/9/usr.sbin/kldxref/ef.c
==============================================================================
--- stable/9/usr.sbin/kldxref/ef.c Fri Jun 22 05:01:36 2012 (r237414)
+++ stable/9/usr.sbin/kldxref/ef.c Fri Jun 22 05:23:39 2012 (r237415)
@@ -532,7 +532,7 @@ ef_open(const char *filename, struct elf
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
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
ef->ef_segs[nsegs++] = phdr;
break;
case PT_PHDR:
- phphdr = phdr;
break;
case PT_DYNAMIC:
phdyn = phdr;
More information about the svn-src-stable-9
mailing list