svn commit: r255515 - stable/9/sys/cddl/dev/fbt
Andriy Gapon
avg at FreeBSD.org
Fri Sep 13 13:53:22 UTC 2013
Author: avg
Date: Fri Sep 13 13:53:21 2013
New Revision: 255515
URL: http://svnweb.freebsd.org/changeset/base/255515
Log:
MFC r254713: fbt: drop a local write-only variable
Modified:
stable/9/sys/cddl/dev/fbt/fbt.c
Directory Properties:
stable/9/sys/ (props changed)
Modified: stable/9/sys/cddl/dev/fbt/fbt.c
==============================================================================
--- stable/9/sys/cddl/dev/fbt/fbt.c Fri Sep 13 11:57:52 2013 (r255514)
+++ stable/9/sys/cddl/dev/fbt/fbt.c Fri Sep 13 13:53:21 2013 (r255515)
@@ -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 ||
More information about the svn-src-stable-9
mailing list