summaryrefslogtreecommitdiff
path: root/ArmPlatformPkg/Drivers/PL011Uart/PL011Uart.c
diff options
context:
space:
mode:
Diffstat (limited to 'ArmPlatformPkg/Drivers/PL011Uart/PL011Uart.c')
-rw-r--r--ArmPlatformPkg/Drivers/PL011Uart/PL011Uart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ArmPlatformPkg/Drivers/PL011Uart/PL011Uart.c b/ArmPlatformPkg/Drivers/PL011Uart/PL011Uart.c
index fdb9ff490e..2b6741528b 100644
--- a/ArmPlatformPkg/Drivers/PL011Uart/PL011Uart.c
+++ b/ArmPlatformPkg/Drivers/PL011Uart/PL011Uart.c
@@ -131,7 +131,7 @@ PL011UartInitializePort (
//
// If BaudRate is zero then use default baud rate
- if (BaudRate == 0) {
+ if (*BaudRate == 0) {
if (PcdGet32 (PL011UartInteger) != 0) {
MmioWrite32 (UartBase + UARTIBRD, PcdGet32 (PL011UartInteger));
MmioWrite32 (UartBase + UARTFBRD, PcdGet32 (PL011UartFractional));