diff options
author | avg <avg@FreeBSD.org> | 2013-08-23 14:41:27 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2013-08-23 14:41:27 +0000 |
commit | c27e328bd915134b979cf09c65f15a9b967510cb (patch) | |
tree | 619517be161788174248792ca09b47080b523ebb /sys/cddl/dev/fbt | |
parent | 6c1cec4482abd78d3143db210d822d10b25cfc65 (diff) | |
download | FreeBSD-src-c27e328bd915134b979cf09c65f15a9b967510cb.zip FreeBSD-src-c27e328bd915134b979cf09c65f15a9b967510cb.tar.gz |
fbt: drop a local write-only variable
Discovered with: gcc46
MFC after: 4 days
Diffstat (limited to 'sys/cddl/dev/fbt')
-rw-r--r-- | sys/cddl/dev/fbt/fbt.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/cddl/dev/fbt/fbt.c b/sys/cddl/dev/fbt/fbt.c index 7b278f7..7e256e7 100644 --- a/sys/cddl/dev/fbt/fbt.c +++ b/sys/cddl/dev/fbt/fbt.c @@ -574,7 +574,6 @@ static int fbt_ctfoff_init(modctl_t *lf, linker_ctf_t *lc) { const Elf_Sym *symp = lc->symtab;; - const char *name; const ctf_header_t *hp = (const ctf_header_t *) lc->ctftab; const uint8_t *ctfdata = lc->ctftab + sizeof(ctf_header_t); int i; @@ -606,11 +605,6 @@ fbt_ctfoff_init(modctl_t *lf, linker_ctf_t *lc) continue; } - if (symp->st_name < lc->strcnt) - name = lc->strtab + symp->st_name; - else - name = "(?)"; - switch (ELF_ST_TYPE(symp->st_info)) { case STT_OBJECT: if (objtoff >= hp->cth_funcoff || |