This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Redundant hash table check


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ae1bb197269ca8f7aa560168c0dfd0bb80730e0f

commit ae1bb197269ca8f7aa560168c0dfd0bb80730e0f
Author: Alan Modra <amodra@gmail.com>
Date:   Mon May 9 17:08:35 2016 +0930

    Redundant hash table check
    
    	* elf64-ppc.c (ppc64_elf_init_stub_bfd): Remove redundant NULL check.

Diff:
---
 bfd/ChangeLog   | 4 ++++
 bfd/elf64-ppc.c | 2 --
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index dfd9c1b..df6cd45 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,7 @@
+2016-05-09  Alan Modra  <amodra@gmail.com>
+
+	* elf64-ppc.c (ppc64_elf_init_stub_bfd): Remove redundant NULL check.
+
 2016-05-06  H.J. Lu  <hongjiu.lu@intel.com>
 
 	PR ld/17550
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
index a9f66d6..3717160 100644
--- a/bfd/elf64-ppc.c
+++ b/bfd/elf64-ppc.c
@@ -4430,8 +4430,6 @@ ppc64_elf_init_stub_bfd (struct bfd_link_info *info,
    linker created stub bfd.  This ensures that the GOT header is at
    the start of the output TOC section.  */
   htab = ppc_hash_table (info);
-  if (htab == NULL)
-    return FALSE;
   htab->elf.dynobj = params->stub_bfd;
   htab->params = params;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]