Revision: 14431
          http://sourceforge.net/p/edk2/code/14431
Author:   oliviermartin
Date:     2013-06-19 18:03:12 +0000 (Wed, 19 Jun 2013)
Log Message:
-----------
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 <[email protected]>

Modified Paths:
--------------
    trunk/edk2/ArmPlatformPkg/Drivers/PL011Uart/PL011Uart.c

Modified: trunk/edk2/ArmPlatformPkg/Drivers/PL011Uart/PL011Uart.c
===================================================================
--- trunk/edk2/ArmPlatformPkg/Drivers/PL011Uart/PL011Uart.c     2013-06-19 
18:00:46 UTC (rev 14430)
+++ trunk/edk2/ArmPlatformPkg/Drivers/PL011Uart/PL011Uart.c     2013-06-19 
18:03:12 UTC (rev 14431)
@@ -131,7 +131,7 @@
   //
 
   // 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));

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to