From 64f0b43852529bde85c77e0c61b67d3d4e12b0c3 Mon Sep 17 00:00:00 2001 From: Mark Jansen Date: Tue, 10 May 2016 18:15:35 +0000 Subject: [PATCH] [UNIATA] Fix uninitialized variable usage. Patch by 'Alter'. CORE-11157 #resolve #comment Thanks! svn path=/trunk/; revision=71309 --- reactos/drivers/storage/ide/uniata/id_dma.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reactos/drivers/storage/ide/uniata/id_dma.cpp b/reactos/drivers/storage/ide/uniata/id_dma.cpp index 75afe266409..cdbd1d354a5 100644 --- a/reactos/drivers/storage/ide/uniata/id_dma.cpp +++ b/reactos/drivers/storage/ide/uniata/id_dma.cpp @@ -1538,7 +1538,7 @@ dma_cs55xx: if(deviceExtension->DevID == ATA_I82371FB) { KdPrint2((PRINT_PREFIX " I82371FB\n")); USHORT reg4x; - USHORT control; + USHORT control=0; for(i=wdmamode; i>=0; i--) { idx = 5+i; if(AtaSetTransferMode(deviceExtension, DeviceNumber, lChannel, LunExt, ATA_WDMA0 + i)) { @@ -1559,9 +1559,9 @@ dma_cs55xx: } GetPciConfig2(0x40+Channel*2, reg4x); if(apiomode > ATA_PIO0) { - control = 0x03; /* IORDY|TIME0 */ + control |= 0x03; /* IORDY|TIME0 */ } else { - control = 0x02; /* IORDY */ + control |= 0x02; /* IORDY */ } // if (ata_pio_need_iordy(adev)) //control |= 2; /* IE */