X-Git-Url: https://git.ozlabs.org/?p=yaboot.git;a=blobdiff_plain;f=second%2Ffile.c;h=da66de6a121df892424c2b04394611ad78d73fba;hp=0278dfaed5302d52050f8da097d0fccbf291c8d5;hb=b58b7f84f40f96f61a1d5fc1f88a1abd9c1a4193;hpb=2ad0d7649e5042cad43a16b4a03bf53f39948316 diff --git a/second/file.c b/second/file.c index 0278dfa..da66de6 100644 --- a/second/file.c +++ b/second/file.c @@ -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))