summaryrefslogtreecommitdiff
path: root/ArmPlatformPkg
diff options
context:
space:
mode:
authorOlivier Martin <olivier.martin@arm.com>2013-06-19 18:03:12 +0000
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2013-06-19 18:03:12 +0000
commitc57482d11c8fdf6f70588b25c6e952c006a20c5c (patch)
tree42e9c525c6f04af72e9bfb8092bac77358c4e559 /ArmPlatformPkg
parent40761653599e4be2c4fa38cd002033e3458786e4 (diff)
downloadedk2-platforms-c57482d11c8fdf6f70588b25c6e952c006a20c5c.tar.xz
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 <olivier.martin@arm.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14431 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ArmPlatformPkg')
-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));