]> git.proxmox.com Git - mirror_edk2.git/commit
ArmPlatformPkg: Remove double write in PL011
authorEvan Lloyd <evan.lloyd@arm.com>
Wed, 15 Jun 2016 12:52:40 +0000 (13:52 +0100)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 15 Jun 2016 14:15:40 +0000 (16:15 +0200)
commitca0aad698212bed2b65b4569cfeabcf7f0a7e88a
tree350544806106339edd6f0aa56221baa933ab1d76
parentaadc64e6a15a4a71339c393a0eb01587cfbd5eb7
ArmPlatformPkg: Remove double write in PL011

The variable LineControl was initialised to zero, then updated in a
condition.  This change converts that to a write in each branch of the
condition, removing the Write/Read/Modify/Write sequence.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
Signed-off-by: Evan Lloyd <evan.lloyd@arm.com>
Tested-by: Ryan Harkin <ryan.harkin@linaro.org>
Reviewed-by: Ryan Harkin <ryan.harkin@linaro.org>
ArmPlatformPkg/Drivers/PL011Uart/PL011Uart.c