forked from Imagelibrary/binutils-gdb
Remove checks of the return value from bfd_cache_ookup()
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user