summaryrefslogtreecommitdiff
path: root/bfd/trad-core.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2004-05-05 15:46:35 +0000
committerNick Clifton <nickc@redhat.com>2004-05-05 15:46:35 +0000
commitab449e8ada402e8b243fb348bccc2c8a6af9a747 (patch)
tree565c9c59115aa0ae3901fbe033a169ebdba7036f /bfd/trad-core.c
parenta6b1cec7e9ef60cbd49eefc623010418180ba7ce (diff)
downloadbinutils-redhat-ab449e8ada402e8b243fb348bccc2c8a6af9a747.tar.gz
Remove checks of the return value from bfd_cache_ookup()
Diffstat (limited to 'bfd/trad-core.c')
-rw-r--r--bfd/trad-core.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/bfd/trad-core.c b/bfd/trad-core.c
index f8c03d739a..1b9e69f2a9 100644
--- a/bfd/trad-core.c
+++ b/bfd/trad-core.c
@@ -111,8 +111,7 @@ trad_unix_core_file_p (abfd)
{
FILE *stream = bfd_cache_lookup (abfd);
struct stat statbuf;
- if (stream == NULL)
- return 0;
+
if (fstat (fileno (stream), &statbuf) < 0)
{
bfd_set_error (bfd_error_system_call);