From: Roland McGrath Date: Tue, 8 Feb 2011 19:20:49 +0000 (-0800) Subject: libasm: Remove an unused variable. X-Git-Tag: elfutils-0.152~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7094d00a169afb27e0323f8580e817798ae7c240;p=thirdparty%2Felfutils.git libasm: Remove an unused variable. --- diff --git a/libasm/ChangeLog b/libasm/ChangeLog index ef31dbb2b..f9a863dff 100644 --- a/libasm/ChangeLog +++ b/libasm/ChangeLog @@ -1,3 +1,7 @@ +2011-02-08 Roland McGrath + + * asm_newscn.c (asm_newscn): Remove unused variable. + 2010-02-15 Roland McGrath * Makefile.am: Use config/eu.am for common stuff. diff --git a/libasm/asm_newscn.c b/libasm/asm_newscn.c index 8a5e78b5d..dd48d2b2f 100644 --- a/libasm/asm_newscn.c +++ b/libasm/asm_newscn.c @@ -1,5 +1,5 @@ /* Create new section in output file. - Copyright (C) 2002, 2005 Red Hat, Inc. + Copyright (C) 2002-2011 Red Hat, Inc. This file is part of Red Hat elfutils. Written by Ulrich Drepper , 2002. @@ -162,7 +162,6 @@ asm_newscn (ctx, scnname, type, flags) GElf_Xword flags; { size_t scnname_len = strlen (scnname) + 1; - unsigned long int hval; AsmScn_t *result; /* If no context is given there might be an earlier error. */ @@ -180,8 +179,6 @@ asm_newscn (ctx, scnname, type, flags) return NULL; } - hval = elf_hash (scnname); - rwlock_wrlock (ctx->lock); /* This is a new section. */