summaryrefslogtreecommitdiff
path: root/bfd/sco5-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
commit3b4405ad1abb3b7bd0bddec5aa7a889f0423102f (patch)
tree48693d280e5789de68a274019f4303e9d81d765e /bfd/sco5-core.c
parent9d6999597795eecf94c332b1ef3dbc59cdf5709c (diff)
downloadgdb-3b4405ad1abb3b7bd0bddec5aa7a889f0423102f.tar.gz
Remove checks of the return value from bfd_cache_ookup()
Diffstat (limited to 'bfd/sco5-core.c')
-rw-r--r--bfd/sco5-core.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/bfd/sco5-core.c b/bfd/sco5-core.c
index 5c34ff1b556..b88bd7b1af3 100644
--- a/bfd/sco5-core.c
+++ b/bfd/sco5-core.c
@@ -123,13 +123,12 @@ sco5_core_file_p (abfd)
char *secname;
flagword flags;
- /* Read coreoffsets region at end of core (see core(FP)) */
+ /* Read coreoffsets region at end of core (see core(FP)). */
{
FILE *stream = bfd_cache_lookup (abfd);
struct stat statbuf;
- if (stream == NULL)
- return NULL;
+
if (fstat (fileno (stream), &statbuf) < 0)
{
bfd_set_error (bfd_error_system_call);