svn commit: r254713 - head/sys/cddl/dev/fbt

Andriy Gapon avg at FreeBSD.org
Fri Aug 23 14:41:28 UTC 2013


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 ||


More information about the svn-src-all mailing list