]> git.proxmox.com Git - mirror_edk2.git/commit - EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClock.c
EmbeddedPkg/RealTimeClockRuntimeDxe: Drop ASSERTs on function arguments
authorGaurav Jain <gaurav.jain@nxp.com>
Wed, 18 Mar 2020 10:24:19 +0000 (15:54 +0530)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 26 Mar 2020 18:39:01 +0000 (18:39 +0000)
commit32bcdfa512bda825d968c69cdeb7d5da89ced62e
tree02379663dddc5eb60939ac7f1c56790d8013ad50
parent5f7c91f0d72efca3b53628163861265c89306f1f
EmbeddedPkg/RealTimeClockRuntimeDxe: Drop ASSERTs on function arguments

ASSERT in SetTime_Conf Consistency Test.
SCT Test expect return as Invalid Parameter.
So removed ASSERT().

While at it, check that the NanoSecond field is within the range given
by the UEFI specification.

Signed-off-by: Gaurav Jain <gaurav.jain@nxp.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClock.c