Skip to content

Commit

Permalink
Revert "x86: fix ghost EDD devices in /sys again"
Browse files Browse the repository at this point in the history
This reverts commit 464f04c.
Obsoleted by commit 6cdcdb9.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
  • Loading branch information
H. Peter Anvin committed Oct 3, 2008
1 parent 6cdcdb9 commit 98920dc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions arch/x86/boot/edd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 98920dc

Please sign in to comment.