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 <mark.cave-ayland@siriusit.co.uk>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@814 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Mark Cave-Ayland
2010-07-04 10:56:05 +00:00
committed by Mark Cave-Ayland
parent 40ed0faad9
commit ec930b7f72

View File

@@ -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 ) */