Revert "x86: fix ghost EDD devices in /sys again"

This reverts commit 464f04c9e9.
Obsoleted by commit 6cdcdb99cf.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
H. Peter Anvin 2008-10-03 10:22:33 -07:00
parent 6cdcdb99cf
commit 98920dc3d1

View File

@ -32,9 +32,7 @@ static int read_mbr(u8 devno, void *buf)
: "+a" (ax), "+c" (cx), "+d" (dx), "+b" (bx)
: : "esi", "edi", "memory");
/* Some BIOSes do not set carry flag on error but still return
* error in AH. The condition below is expected to catch both */
return -!!ax; /* 0 or -1 */
return -(u8)ax; /* 0 or -1 */
}
static u32 read_mbr_sig(u8 devno, struct edd_info *ei, u32 *mbrsig)