aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/boot/edd.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-10-03 13:22:33 -0400
committerH. Peter Anvin <hpa@zytor.com>2008-10-03 13:22:33 -0400
commit98920dc3d1113b883cbc73e3293446d3525c6042 (patch)
treea8f9dbd93507b97520c64b82b524a879f7e8a6d5 /arch/x86/boot/edd.c
parent6cdcdb99cf7c2e1835fc5b471864d21161c3e679 (diff)
Revert "x86: fix ghost EDD devices in /sys again"
This reverts commit 464f04c9e9b3b1c4f5ffb89c51d8ba2a2034c846. Obsoleted by commit 6cdcdb99cf7c2e1835fc5b471864d21161c3e679. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86/boot/edd.c')
-rw-r--r--arch/x86/boot/edd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/x86/boot/edd.c b/arch/x86/boot/edd.c
index 067e28cd3c5f..1aae8f3e5ca1 100644
--- a/arch/x86/boot/edd.c
+++ b/arch/x86/boot/edd.c
@@ -32,9 +32,7 @@ static int read_mbr(u8 devno, void *buf)
32 : "+a" (ax), "+c" (cx), "+d" (dx), "+b" (bx) 32 : "+a" (ax), "+c" (cx), "+d" (dx), "+b" (bx)
33 : : "esi", "edi", "memory"); 33 : : "esi", "edi", "memory");
34 34
35 /* Some BIOSes do not set carry flag on error but still return 35 return -(u8)ax; /* 0 or -1 */
36 * error in AH. The condition below is expected to catch both */
37 return -!!ax; /* 0 or -1 */
38} 36}
39 37
40static u32 read_mbr_sig(u8 devno, struct edd_info *ei, u32 *mbrsig) 38static u32 read_mbr_sig(u8 devno, struct edd_info *ei, u32 *mbrsig)