]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/x86/boot/edd.c
Revert "x86: fix ghost EDD devices in /sys again"
[linux-2.6-omap-h63xx.git] / arch / x86 / boot / edd.c
index 067e28cd3c5f8f9108da6f0663dfb1c025cf0bb9..1aae8f3e5ca1912b6eb60ad75e3c120af1110bed 100644 (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)