Remove checks of the return value from bfd_cache_ookup()

This commit is contained in:
Nick Clifton
2004-05-05 15:46:35 +00:00
parent 10a4b11321
commit 33216455a7
4 changed files with 9 additions and 6 deletions

View File

@@ -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);