From ec930b7f72a90d90a09b4262372c80ef08fb8d9f Mon Sep 17 00:00:00 2001 From: Mark Cave-Ayland Date: Sun, 4 Jul 2010 10:56:05 +0000 Subject: [PATCH] Fix incorrect interpretation of HFS seek function result code which was causing FC12 to fail during second-stage boot. Signed-off-by: Mark Cave-Ayland git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@814 f158a5a8-5612-0410-a976-696ce0be7e32 --- fs/hfs/hfs_fs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/hfs/hfs_fs.c b/fs/hfs/hfs_fs.c index 232c07f..5748b54 100644 --- a/fs/hfs/hfs_fs.c +++ b/fs/hfs/hfs_fs.c @@ -392,10 +392,10 @@ hfs_files_seek( hfs_info_t *mi ) } ret = hfs_seek( common->file, offs, whence ); - if (ret) - RET( -1 ); - else + if (ret != -1) RET( 0 ); + else + RET( -1 ); } /* ( addr -- size ) */