Remove one force-cast code to avoid clang build error.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Heyi Guo guoheyi@huawei.com --- Chips/Hisilicon/Drivers/VirtualEhciPciIo/VirtualEhciPciIo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Chips/Hisilicon/Drivers/VirtualEhciPciIo/VirtualEhciPciIo.c b/Chips/Hisilicon/Drivers/VirtualEhciPciIo/VirtualEhciPciIo.c index d14f9df..0cb1e80 100644 --- a/Chips/Hisilicon/Drivers/VirtualEhciPciIo/VirtualEhciPciIo.c +++ b/Chips/Hisilicon/Drivers/VirtualEhciPciIo/VirtualEhciPciIo.c @@ -193,7 +193,7 @@ EhciPciIoMemWrite ( return EFI_INVALID_PARAMETER; }
- Width = (EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_WIDTH) (Width & 0x03); + Width = Width & 0x03;
// // Loop for each iteration and move the data