diff options
author | david wei <david.wei@intel.com> | 2016-07-15 14:34:26 +0800 |
---|---|---|
committer | david wei <david.wei@intel.com> | 2016-07-15 14:34:26 +0800 |
commit | d6e2bb4a60ab7cca4c1b8757f4ef76fc090ade7a (patch) | |
tree | d0fea2eeeea2021be28471eedc01becbcdad89c1 | |
parent | 07c47b5f4a2cfeb035c8f1bba8e47d819575854e (diff) | |
download | edk2-platforms-d6e2bb4a60ab7cca4c1b8757f4ef76fc090ade7a.tar.xz |
Fixed code logic error.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: David Wei <david.wei@intel.com>
-rw-r--r-- | Vlv2TbltDevicePkg/PlatformRtcRuntimeDxe/PlatformRtc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Vlv2TbltDevicePkg/PlatformRtcRuntimeDxe/PlatformRtc.c b/Vlv2TbltDevicePkg/PlatformRtcRuntimeDxe/PlatformRtc.c index 6c4cdeb410..5e7f641a94 100644 --- a/Vlv2TbltDevicePkg/PlatformRtcRuntimeDxe/PlatformRtc.c +++ b/Vlv2TbltDevicePkg/PlatformRtcRuntimeDxe/PlatformRtc.c @@ -63,8 +63,8 @@ PlatformRtcSetTime ( );
ASSERT(Status == EFI_SUCCESS);
} else {
- if (~(((RtcTime.Year == RtcTime2.Year) && (RtcTime.Month == RtcTime2.Month) && (RtcTime.Day == RtcTime2.Day)) &&
- ((RtcTime.Hour == RtcTime2.Hour) && (RtcTime.Minute == RtcTime2.Minute) && (RtcTime.Second == RtcTime2.Second)))) {
+ if (!((RtcTime.Year == RtcTime2.Year) && (RtcTime.Month == RtcTime2.Month) && (RtcTime.Day == RtcTime2.Day) &&
+ (RtcTime.Hour == RtcTime2.Hour) && (RtcTime.Minute == RtcTime2.Minute) && (RtcTime.Second == RtcTime2.Second))) {
//
// If the time to be set is the same as the saved RTC time, we do not need save the RTC time again.
//
|