summaryrefslogtreecommitdiff
path: root/Nt32Pkg/WinNtSerialIoDxe
diff options
context:
space:
mode:
Diffstat (limited to 'Nt32Pkg/WinNtSerialIoDxe')
-rw-r--r--Nt32Pkg/WinNtSerialIoDxe/WinNtSerialIo.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/Nt32Pkg/WinNtSerialIoDxe/WinNtSerialIo.c b/Nt32Pkg/WinNtSerialIoDxe/WinNtSerialIo.c
index e12f14dc29..5a55fa428c 100644
--- a/Nt32Pkg/WinNtSerialIoDxe/WinNtSerialIo.c
+++ b/Nt32Pkg/WinNtSerialIoDxe/WinNtSerialIo.c
@@ -192,7 +192,7 @@ Returns:
DevicePathNodeLength((EFI_DEVICE_PATH_PROTOCOL *)UartNode) != sizeof(UART_DEVICE_PATH)) {
goto Error;
}
- if (UartNode->BaudRate < 0 || UartNode->BaudRate > SERIAL_PORT_MAX_BAUD_RATE) {
+ if ( UartNode->BaudRate > SERIAL_PORT_MAX_BAUD_RATE) {
goto Error;
}
if (UartNode->Parity < NoParity || UartNode->Parity > SpaceParity) {
@@ -339,9 +339,9 @@ Returns:
Node.BaudRate,
SerialIo->Mode->ReceiveFifoDepth,
SerialIo->Mode->Timeout,
- Node.Parity,
+ (EFI_PARITY_TYPE)Node.Parity,
Node.DataBits,
- Node.StopBits
+ (EFI_STOP_BITS_TYPE)Node.StopBits
);
}
break;
@@ -699,9 +699,9 @@ Returns:
This->Mode->BaudRate,
This->Mode->ReceiveFifoDepth,
This->Mode->Timeout,
- This->Mode->Parity,
+ (EFI_PARITY_TYPE)This->Mode->Parity,
(UINT8) This->Mode->DataBits,
- This->Mode->StopBits
+ (EFI_STOP_BITS_TYPE)This->Mode->StopBits
);
}
@@ -774,7 +774,7 @@ Returns:
}
if (Parity == DefaultParity) {
- Parity = FixedPcdGet8 (PcdUartDefaultParity);
+ Parity = (EFI_PARITY_TYPE) (FixedPcdGet8 (PcdUartDefaultParity));
}
if (DataBits == 0) {