mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-14 09:14:24 +02:00
ICC Cleanup: add enum typecast after arithemtics.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6588 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
aeef1b2b84
commit
e16c7fa32b
@ -541,7 +541,7 @@ DeviceIoMemRead (
|
|||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
if (Width >= MMIO_COPY_UINT8) {
|
if (Width >= MMIO_COPY_UINT8) {
|
||||||
Width = Width - MMIO_COPY_UINT8;
|
Width = (EFI_IO_WIDTH) (Width - MMIO_COPY_UINT8);
|
||||||
Status = Private->PciRootBridgeIo->CopyMem (
|
Status = Private->PciRootBridgeIo->CopyMem (
|
||||||
Private->PciRootBridgeIo,
|
Private->PciRootBridgeIo,
|
||||||
(EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_WIDTH) Width,
|
(EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_WIDTH) Width,
|
||||||
@ -600,7 +600,7 @@ DeviceIoMemWrite (
|
|||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
if (Width >= MMIO_COPY_UINT8) {
|
if (Width >= MMIO_COPY_UINT8) {
|
||||||
Width = Width - MMIO_COPY_UINT8;
|
Width = (EFI_IO_WIDTH) (Width - MMIO_COPY_UINT8);
|
||||||
Status = Private->PciRootBridgeIo->CopyMem (
|
Status = Private->PciRootBridgeIo->CopyMem (
|
||||||
Private->PciRootBridgeIo,
|
Private->PciRootBridgeIo,
|
||||||
(EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_WIDTH) Width,
|
(EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_WIDTH) Width,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user