Partially make EdkModulePkg pass intel IPF compiler with /W4 /WX switched on.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2313 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -713,11 +713,6 @@ PioReadWriteData (
|
||||
EFI_STATUS Status;
|
||||
UINT16 *PtrBuffer;
|
||||
|
||||
//
|
||||
// containing status byte read from Status Register.
|
||||
//
|
||||
UINT8 StatusRegister;
|
||||
|
||||
//
|
||||
// No data transfer is premitted.
|
||||
//
|
||||
@@ -750,16 +745,14 @@ PioReadWriteData (
|
||||
//
|
||||
// read Status Register will clear interrupt
|
||||
//
|
||||
StatusRegister = IDEReadPortB (IdeDev->PciIo, IdeDev->IoPort->Reg.Status);
|
||||
IDEReadPortB (IdeDev->PciIo, IdeDev->IoPort->Reg.Status);
|
||||
|
||||
//
|
||||
// get current data transfer size from Cylinder Registers.
|
||||
//
|
||||
WordCount =
|
||||
(
|
||||
(IDEReadPortB (IdeDev->PciIo, IdeDev->IoPort->CylinderMsb) << 8) |
|
||||
IDEReadPortB (IdeDev->PciIo, IdeDev->IoPort->CylinderLsb)
|
||||
) & 0xffff;
|
||||
WordCount = IDEReadPortB (IdeDev->PciIo, IdeDev->IoPort->CylinderMsb) << 8;
|
||||
WordCount = WordCount | IDEReadPortB (IdeDev->PciIo, IdeDev->IoPort->CylinderLsb);
|
||||
WordCount = WordCount & 0xffff;
|
||||
WordCount /= 2;
|
||||
|
||||
WordCount = EFI_MIN (WordCount, (RequiredWordCount - ActualWordCount));
|
||||
|
Reference in New Issue
Block a user