Skip to content

Commit 6b75112

Browse files
committed
Remove compile warnings from ATA Controller
1 parent 408a5b0 commit 6b75112

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

devices/x86/ata/controller.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -518,9 +518,9 @@ static uint32 pciata_readl(int reg) {
518518
}
519519

520520
static void pciata_writeb(int reg,uint8 val) {
521-
uint8 *pConf;
521+
//uint8 *pConf;
522522

523-
pConf = ((uint8*)&dev.conf) + reg;
523+
//pConf = ((uint8*)&dev.conf) + reg;
524524

525525
//LOG("Reg=0x%x, Val=0x%x",reg,val);
526526

@@ -529,9 +529,9 @@ static void pciata_writeb(int reg,uint8 val) {
529529
//ASSERT(0,"Not implemented");
530530
}
531531
static void pciata_writew(int reg,uint16 val) {
532-
uint8 *pConf;
532+
//uint8 *pConf;
533533

534-
pConf = ((uint8*)&dev.conf) + reg;
534+
//pConf = ((uint8*)&dev.conf) + reg;
535535

536536
//pciata_dumpWrite(reg,val);
537537
//ASSERT(0,"Not implemented (reg=0x%x,val=0x%x)",reg,val);

0 commit comments

Comments
 (0)