diff options
author | Nick Clifton <nickc@redhat.com> | 2004-05-05 15:46:35 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2004-05-05 15:46:35 +0000 |
commit | 33216455a7084992c03481fee8a8320f98677ae1 (patch) | |
tree | 49f003e33849158ba305ecdc7a857fb90925ff2a /bfd/hppabsd-core.c | |
parent | 10a4b113218bc2f44aa4f511cc504e9b1c658bf4 (diff) | |
download | binutils-gdb-33216455a7084992c03481fee8a8320f98677ae1.tar.gz |
Remove checks of the return value from bfd_cache_ookup()
Diffstat (limited to 'bfd/hppabsd-core.c')
-rw-r--r-- | bfd/hppabsd-core.c | 3 |
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; |