mirror of
https://github.com/reactos/reactos.git
synced 2025-06-05 17:30:32 +00:00
[UNIATA] Fix uninitialized variable usage. Patch by 'Alter'. CORE-11157 #resolve #comment Thanks!
svn path=/trunk/; revision=71309
This commit is contained in:
parent
bc4d7ba184
commit
64f0b43852
1 changed files with 3 additions and 3 deletions
|
@ -1538,7 +1538,7 @@ dma_cs55xx:
|
||||||
if(deviceExtension->DevID == ATA_I82371FB) {
|
if(deviceExtension->DevID == ATA_I82371FB) {
|
||||||
KdPrint2((PRINT_PREFIX " I82371FB\n"));
|
KdPrint2((PRINT_PREFIX " I82371FB\n"));
|
||||||
USHORT reg4x;
|
USHORT reg4x;
|
||||||
USHORT control;
|
USHORT control=0;
|
||||||
for(i=wdmamode; i>=0; i--) {
|
for(i=wdmamode; i>=0; i--) {
|
||||||
idx = 5+i;
|
idx = 5+i;
|
||||||
if(AtaSetTransferMode(deviceExtension, DeviceNumber, lChannel, LunExt, ATA_WDMA0 + i)) {
|
if(AtaSetTransferMode(deviceExtension, DeviceNumber, lChannel, LunExt, ATA_WDMA0 + i)) {
|
||||||
|
@ -1559,9 +1559,9 @@ dma_cs55xx:
|
||||||
}
|
}
|
||||||
GetPciConfig2(0x40+Channel*2, reg4x);
|
GetPciConfig2(0x40+Channel*2, reg4x);
|
||||||
if(apiomode > ATA_PIO0) {
|
if(apiomode > ATA_PIO0) {
|
||||||
control = 0x03; /* IORDY|TIME0 */
|
control |= 0x03; /* IORDY|TIME0 */
|
||||||
} else {
|
} else {
|
||||||
control = 0x02; /* IORDY */
|
control |= 0x02; /* IORDY */
|
||||||
}
|
}
|
||||||
// if (ata_pio_need_iordy(adev))
|
// if (ata_pio_need_iordy(adev))
|
||||||
//control |= 2; /* IE */
|
//control |= 2; /* IE */
|
||||||
|
|
Loading…
Reference in a new issue