mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Author: Pavel Roskin <proski@gnu.org>
struct ata_sector was meant to facilitate taking upper and lower byte of the sector. However, the implementation is incorrect, as "struct" and "union" are swapped in the definition. What's worse, it's an overkill for that simple task. The code should be transparent without knowing how struct ata_sector is defined. [laurent: Original patch modified to remove useless "& 0xff"] git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@489 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -208,20 +208,6 @@ enum {
|
||||
atapi_ddir_write,
|
||||
};
|
||||
|
||||
struct ata_sector {
|
||||
u16 all;
|
||||
union {
|
||||
#ifdef CONFIG_BIG_ENDIAN
|
||||
u8 high;
|
||||
u8 low;
|
||||
#endif
|
||||
#ifdef CONFIG_LITTLE_ENDIAN
|
||||
u8 low;
|
||||
u8 high;
|
||||
#endif
|
||||
};
|
||||
};
|
||||
|
||||
static int ob_ide_atapi_request_sense(struct ide_drive *drive);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user