]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
libasm: Remove an unused variable.
authorRoland McGrath <roland@redhat.com>
Tue, 8 Feb 2011 19:20:49 +0000 (11:20 -0800)
committerRoland McGrath <roland@redhat.com>
Tue, 8 Feb 2011 19:20:49 +0000 (11:20 -0800)
libasm/ChangeLog
libasm/asm_newscn.c

index ef31dbb2b0fee2e7a2f383e6a6a9ab4f5f2464ce..f9a863dff37319ddda1a72a096e69892a110aaf5 100644 (file)
@@ -1,3 +1,7 @@
+2011-02-08  Roland McGrath  <roland@redhat.com>
+
+       * asm_newscn.c (asm_newscn): Remove unused variable.
+
 2010-02-15  Roland McGrath  <roland@redhat.com>
 
        * Makefile.am: Use config/eu.am for common stuff.
index 8a5e78b5dea81b9a4342dc4353771128ff0807cd..dd48d2b2fb581b0da0f846ad89f4dd88fb10bdef 100644 (file)
@@ -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 <drepper@redhat.com>, 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.  */