Date: Fri, 23 Aug 2013 14:41:28 +0000 (UTC) From: Andriy Gapon <avg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r254713 - head/sys/cddl/dev/fbt Message-ID: <201308231441.r7NEfSjs096231@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: avg Date: Fri Aug 23 14:41:27 2013 New Revision: 254713 URL: http://svnweb.freebsd.org/changeset/base/254713 Log: fbt: drop a local write-only variable Discovered with: gcc46 MFC after: 4 days Modified: head/sys/cddl/dev/fbt/fbt.c Modified: head/sys/cddl/dev/fbt/fbt.c ============================================================================== --- head/sys/cddl/dev/fbt/fbt.c Fri Aug 23 14:40:17 2013 (r254712) +++ head/sys/cddl/dev/fbt/fbt.c Fri Aug 23 14:41:27 2013 (r254713) @@ -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 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 ||
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201308231441.r7NEfSjs096231>