diff options
author | Leo Duran <leo.duran@amd.com> | 2016-03-24 15:30:11 -0500 |
---|---|---|
committer | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2016-03-25 07:09:49 +0100 |
commit | da6ae666410e5b0354312e51c3e63775f79c33af (patch) | |
tree | 706154020e323d59f1e8a3b68c3bcfd8412ca266 /EmbeddedPkg | |
parent | 3decba3d32382e22357de4eb25da1aedf6462861 (diff) | |
download | edk2-da6ae666410e5b0354312e51c3e63775f79c33af.tar.gz edk2-da6ae666410e5b0354312e51c3e63775f79c33af.tar.bz2 edk2-da6ae666410e5b0354312e51c3e63775f79c33af.zip |
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.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClock.c b/EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClock.c index 80af8cf824..f1e067c0b5 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;
|