From d6e2bb4a60ab7cca4c1b8757f4ef76fc090ade7a Mon Sep 17 00:00:00 2001 From: david wei Date: Fri, 15 Jul 2016 14:34:26 +0800 Subject: Fixed code logic error. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: David Wei --- Vlv2TbltDevicePkg/PlatformRtcRuntimeDxe/PlatformRtc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Vlv2TbltDevicePkg') 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. // -- cgit v1.2.3