Commit 98920dc3 authored by H. Peter Anvin's avatar H. Peter Anvin

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

This reverts commit 464f04c9.
Obsoleted by commit 6cdcdb99.
Signed-off-by: default avatarH. Peter Anvin <hpa@zytor.com>
parent 6cdcdb99
...@@ -32,9 +32,7 @@ static int read_mbr(u8 devno, void *buf) ...@@ -32,9 +32,7 @@ static int read_mbr(u8 devno, void *buf)
: "+a" (ax), "+c" (cx), "+d" (dx), "+b" (bx) : "+a" (ax), "+c" (cx), "+d" (dx), "+b" (bx)
: : "esi", "edi", "memory"); : : "esi", "edi", "memory");
/* Some BIOSes do not set carry flag on error but still return return -(u8)ax; /* 0 or -1 */
* error in AH. The condition below is expected to catch both */
return -!!ax; /* 0 or -1 */
} }
static u32 read_mbr_sig(u8 devno, struct edd_info *ei, u32 *mbrsig) static u32 read_mbr_sig(u8 devno, struct edd_info *ei, u32 *mbrsig)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment