summaryrefslogtreecommitdiff
path: root/EmbeddedPkg
diff options
context:
space:
mode:
authorLeo Duran <leo.duran@amd.com>2016-03-24 15:30:11 -0500
committerArd Biesheuvel <ard.biesheuvel@linaro.org>2016-03-25 07:09:49 +0100
commitda6ae666410e5b0354312e51c3e63775f79c33af (patch)
tree706154020e323d59f1e8a3b68c3bcfd8412ca266 /EmbeddedPkg
parent3decba3d32382e22357de4eb25da1aedf6462861 (diff)
downloadedk2-da6ae666410e5b0354312e51c3e63775f79c33af.zip
edk2-da6ae666410e5b0354312e51c3e63775f79c33af.tar.gz
edk2-da6ae666410e5b0354312e51c3e63775f79c33af.tar.bz2
EmbeddedPkg/RTC: use returned status at init-time
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Leo Duran <leo.duran@amd.com> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Diffstat (limited to 'EmbeddedPkg')
-rw-r--r--EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClock.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClock.c b/EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClock.c
index 80af8cf..f1e067c 100644
--- a/EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClock.c
+++ b/EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClock.c
@@ -139,7 +139,10 @@ InitializeRealTimeClock (
{
EFI_STATUS Status;
- LibRtcInitialize (ImageHandle, SystemTable);
+ Status = LibRtcInitialize (ImageHandle, SystemTable);
+ if (EFI_ERROR (Status)) {
+ return Status;
+ }
SystemTable->RuntimeServices->GetTime = GetTime;
SystemTable->RuntimeServices->SetTime = SetTime;