forked from len0rd/rockbox
Killed warnings
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1066 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
a422b8381b
commit
1b8bb1e05e
1 changed files with 1 additions and 2 deletions
|
@ -330,7 +330,6 @@ static int master_slave_detect(void)
|
|||
static int io_address_detect(void)
|
||||
{
|
||||
unsigned char tmp = ATA_STATUS & 0xf9; /* Mask the IDX and CORR bits */
|
||||
unsigned char tmp2;
|
||||
unsigned char dummy;
|
||||
|
||||
/* We compare the STATUS register with the ALT_STATUS register, which
|
||||
|
@ -344,7 +343,7 @@ static int io_address_detect(void)
|
|||
contents. */
|
||||
ATA_SECTOR = 0;
|
||||
dummy = ATA_SECTOR;
|
||||
if(tmp == (*ATA_CONTROL2) & 0xf9)
|
||||
if(tmp == ((*ATA_CONTROL2) & 0xf9))
|
||||
{
|
||||
DEBUGF("CONTROL is at 0x306\n");
|
||||
ata_control = ATA_CONTROL2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue