]> git.ozlabs.org Git - yaboot.git/blobdiff - second/file.c
Prepare 1.3.7-pre1
[yaboot.git] / second / file.c
index 0278dfaed5302d52050f8da097d0fccbf291c8d5..da66de6a121df892424c2b04394611ad78d73fba 100644 (file)
@@ -1,7 +1,7 @@
 /*
  *  file.c - Filesystem related interfaces
  *
- *  Copyright (C) 2001 Ethan Benson
+ *  Copyright (C) 2001, 2002 Ethan Benson
  *
  *  parse_device_path()
  *
@@ -166,7 +166,7 @@ file_block_open(    struct boot_file_t*     file,
                  p->part_number, p->part_start, p->part_size );
          if (partition == -1) {
               file->fs = fs_open( file, dev_name, p, file_name );
-              if (file->fs != NULL)
+              if (file->fs != FILE_ERR_OK)
                    goto bail;
          }
          if ((partition >= 0) && (partition == p->part_number))