diff options
author | Alan Modra <amodra@gmail.com> | 2002-06-17 02:33:42 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2002-06-17 02:33:42 +0000 |
commit | 767e34d13c1b03c5371d4141432f3ad3bc53597e (patch) | |
tree | fee43ba6b861862a7c4f92ed2f0b95f20f6d3970 /bfd/opncls.c | |
parent | 341ca62211a5a9d3c18d23f2fc6250db23d85065 (diff) | |
download | gdb-767e34d13c1b03c5371d4141432f3ad3bc53597e.zip gdb-767e34d13c1b03c5371d4141432f3ad3bc53597e.tar.gz gdb-767e34d13c1b03c5371d4141432f3ad3bc53597e.tar.bz2 |
* opncls.c (bfd_openr): Remove redundant bfd_set_error.
(bfd_fdopenr): Likewise.
(bfd_openstreamr): Likewise.
(bfd_openw): Likewise.
Diffstat (limited to 'bfd/opncls.c')
-rw-r--r-- | bfd/opncls.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/bfd/opncls.c b/bfd/opncls.c index f110259..cdf08df 100644 --- a/bfd/opncls.c +++ b/bfd/opncls.c @@ -152,7 +152,6 @@ bfd_openr (filename, target) target_vec = bfd_find_target (target, nbfd); if (target_vec == NULL) { - bfd_set_error (bfd_error_invalid_target); _bfd_delete_bfd (nbfd); return NULL; } @@ -220,7 +219,8 @@ bfd_fdopenr (filename, target, fd) #else fdflags = fcntl (fd, F_GETFL, NULL); #endif - if (fdflags == -1) return NULL; + if (fdflags == -1) + return NULL; nbfd = _bfd_new_bfd (); if (nbfd == NULL) @@ -229,7 +229,6 @@ bfd_fdopenr (filename, target, fd) target_vec = bfd_find_target (target, nbfd); if (target_vec == NULL) { - bfd_set_error (bfd_error_invalid_target); _bfd_delete_bfd (nbfd); return NULL; } @@ -308,7 +307,6 @@ bfd_openstreamr (filename, target, streamarg) target_vec = bfd_find_target (target, nbfd); if (target_vec == NULL) { - bfd_set_error (bfd_error_invalid_target); _bfd_delete_bfd (nbfd); return NULL; } @@ -354,8 +352,6 @@ bfd_openw (filename, target) bfd *nbfd; const bfd_target *target_vec; - bfd_set_error (bfd_error_system_call); - /* nbfd has to point to head of malloc'ed block so that bfd_close may reclaim it correctly. */ nbfd = _bfd_new_bfd (); |