From 7094d00a169afb27e0323f8580e817798ae7c240 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 8 Feb 2011 11:20:49 -0800 Subject: [PATCH] libasm: Remove an unused variable. --- libasm/ChangeLog | 4 ++++ libasm/asm_newscn.c | 5 +---- 2 files changed, 5 insertions(+), 4 deletions(-) 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. */ -- 2.47.3