summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils/bfd/nlm32-ppc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/binutils/bfd/nlm32-ppc.c')
-rw-r--r--gnu/usr.bin/binutils/bfd/nlm32-ppc.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/gnu/usr.bin/binutils/bfd/nlm32-ppc.c b/gnu/usr.bin/binutils/bfd/nlm32-ppc.c
index 64a047c6dc7..ecf2de8f10b 100644
--- a/gnu/usr.bin/binutils/bfd/nlm32-ppc.c
+++ b/gnu/usr.bin/binutils/bfd/nlm32-ppc.c
@@ -667,10 +667,7 @@ nlm_powerpc_read_import (abfd, sym)
sym -> symbol.the_bfd = abfd;
name = bfd_alloc (abfd, symlength + 1);
if (name == NULL)
- {
- bfd_set_error (bfd_error_no_memory);
- return false;
- }
+ return false;
if (bfd_read (name, symlength, 1, abfd) != symlength)
return (false);
name[symlength] = '\0';
@@ -684,10 +681,7 @@ nlm_powerpc_read_import (abfd, sym)
nlm_relocs = ((struct nlm_relent *)
bfd_alloc (abfd, rcount * sizeof (struct nlm_relent)));
if (nlm_relocs == (struct nlm_relent *) NULL)
- {
- bfd_set_error (bfd_error_no_memory);
- return false;
- }
+ return false;
sym -> relocs = nlm_relocs;
sym -> rcnt = 0;
while (sym -> rcnt < rcount)