Fix all unexpected failures in gas testsuite for pdp11-aout.
[deliverable/binutils-gdb.git] / bfd / elf32-ip2k.c
index ca40335cbe953089068884e014f880456ec79c86..c0c8b8ec9a71b2b381ab5e9adf17ab535459b6f8 100644 (file)
@@ -638,8 +638,7 @@ adjust_all_relocations (bfd *abfd,
        {
          if (!bfd_malloc_and_get_section (abfd, stab, &stabcontents))
            {
-             if (stabcontents != NULL)
-               free (stabcontents);
+             free (stabcontents);
              return;
            }
 
@@ -1210,21 +1209,17 @@ ip2k_elf_relax_section (bfd *abfd,
        }
     }
 
-  if (internal_relocs != NULL
-      && elf_section_data (sec)->relocs != internal_relocs)
+  if (elf_section_data (sec)->relocs != internal_relocs)
     free (internal_relocs);
 
   return TRUE;
 
  error_return:
-  if (isymbuf != NULL
-      && symtab_hdr->contents != (unsigned char *) isymbuf)
+  if (symtab_hdr->contents != (unsigned char *) isymbuf)
     free (isymbuf);
-  if (contents != NULL
-      && elf_section_data (sec)->this_hdr.contents != contents)
+  if (elf_section_data (sec)->this_hdr.contents != contents)
     free (contents);
-  if (internal_relocs != NULL
-      && elf_section_data (sec)->relocs != internal_relocs)
+  if (elf_section_data (sec)->relocs != internal_relocs)
     free (internal_relocs);
   return FALSE;
 }
This page took 0.04006 seconds and 4 git commands to generate.