]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmPlatformPkg/PL011Uart: Fixed condition
authorOlivier Martin <olivier.martin@arm.com>
Wed, 19 Jun 2013 18:03:12 +0000 (18:03 +0000)
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 19 Jun 2013 18:03:12 +0000 (18:03 +0000)
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

ArmPlatformPkg/Drivers/PL011Uart/PL011Uart.c

index fdb9ff490e39ca601424e665217df156c138cb73..2b6741528ba8d869854a5e400150fb9e7ce0f395 100644 (file)
@@ -131,7 +131,7 @@ PL011UartInitializePort (
   //\r
 \r
   // If BaudRate is zero then use default baud rate\r
-  if (BaudRate == 0) {\r
+  if (*BaudRate == 0) {\r
     if (PcdGet32 (PL011UartInteger) != 0) {\r
       MmioWrite32 (UartBase + UARTIBRD, PcdGet32 (PL011UartInteger));\r
       MmioWrite32 (UartBase + UARTFBRD, PcdGet32 (PL011UartFractional));\r