Remove checks of the return value from bfd_cache_ookup()
[deliverable/binutils-gdb.git] / bfd / sco5-core.c
index 5c34ff1b5562612215fb4247f9192d268587dd77..b88bd7b1af37b25ea4e5fe2c7de3126ad9c7cb84 100644 (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);
This page took 0.025092 seconds and 4 git commands to generate.