summaryrefslogtreecommitdiff
path: root/bfd/hppabsd-core.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/hppabsd-core.c')
-rw-r--r--bfd/hppabsd-core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/hppabsd-core.c b/bfd/hppabsd-core.c
index ff88f9d2273..be07c78ce92 100644
--- a/bfd/hppabsd-core.c
+++ b/bfd/hppabsd-core.c
@@ -139,7 +139,8 @@ hppabsd_core_core_file_p (abfd)
{
FILE *stream = bfd_cache_lookup (abfd);
struct stat statbuf;
- if (stream == NULL || fstat (fileno (stream), &statbuf) < 0)
+
+ if (fstat (fileno (stream), &statbuf) < 0)
{
bfd_set_error (bfd_error_system_call);
return NULL;