]> git.proxmox.com Git - mirror_edk2.git/commit - ArmPlatformPkg/Library/PlatformIntelBdsLib/IntelBdsPlatform.c
ArmPlatformPkg/PlatformIntelBdsLib: fix and clean up error handling
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 1 Sep 2015 17:28:57 +0000 (17:28 +0000)
committerabiesheuvel <abiesheuvel@Edk2>
Tue, 1 Sep 2015 17:28:57 +0000 (17:28 +0000)
commit3d175bcb6eeb0bccffd7470f0b2af82311944155
treef5f3ef1d0c3afed4d452c02e56f07e0ab171f3e2
parent3baf5c9fc94eb677d51902bf66e880c9db55cc5a
ArmPlatformPkg/PlatformIntelBdsLib: fix and clean up error handling

InitializeConsolePipe () shadowed its own Status variable, and then
clobbered the top one before printing its error message. Instead,
use a NULL check on the LocateProtocol () output argument.
Also clean up coding style on the error path.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18376 6f19259b-4bc3-4df7-8a09-765794883524
ArmPlatformPkg/Library/PlatformIntelBdsLib/IntelBdsPlatform.c