From: Olivier Martin Date: Wed, 19 Jun 2013 18:03:12 +0000 (+0000) Subject: ArmPlatformPkg/PL011Uart: Fixed condition X-Git-Tag: edk2-stable201903~12475 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=c57482d11c8fdf6f70588b25c6e952c006a20c5c ArmPlatformPkg/PL011Uart: Fixed condition The aim of the condition is to check if we should use the default BaudRate value (case when *BaudRate == 0). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14431 6f19259b-4bc3-4df7-8a09-765794883524 --- 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));