mirror of https://github.com/acidanthera/audk.git
EmbeddedPkg/TimeBaseLib: Fix for minor code formatting
There is no functional modification in this change. Cc: Leif Lindholm <leif@nuviainc.com> Cc: Ard Biesheuvel <ard.biesheuvel@arm.com> Signed-off-by: Nhi Pham <nhi@os.amperecomputing.com> Reviewed-by: Leif Lindholm <leif@nuviainc.com>
This commit is contained in:
parent
48de23e548
commit
ad16388d69
|
@ -221,23 +221,22 @@ IsDayValid (
|
||||||
**/
|
**/
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
EFIAPI
|
EFIAPI
|
||||||
IsTimeValid(
|
IsTimeValid (
|
||||||
IN EFI_TIME *Time
|
IN EFI_TIME *Time
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
// Check the input parameters are within the range specified by UEFI
|
// Check the input parameters are within the range specified by UEFI
|
||||||
if ((Time->Year < 2000) ||
|
if ((Time->Year < 2000) ||
|
||||||
(Time->Year > 2099) ||
|
(Time->Year > 2099) ||
|
||||||
(Time->Month < 1 ) ||
|
(Time->Month < 1 ) ||
|
||||||
(Time->Month > 12 ) ||
|
(Time->Month > 12 ) ||
|
||||||
(!IsDayValid (Time) ) ||
|
(!IsDayValid (Time) ) ||
|
||||||
(Time->Hour > 23 ) ||
|
(Time->Hour > 23 ) ||
|
||||||
(Time->Minute > 59 ) ||
|
(Time->Minute > 59 ) ||
|
||||||
(Time->Second > 59 ) ||
|
(Time->Second > 59 ) ||
|
||||||
(Time->Nanosecond > 999999999) ||
|
(Time->Nanosecond > 999999999) ||
|
||||||
(!((Time->TimeZone == EFI_UNSPECIFIED_TIMEZONE) || ((Time->TimeZone >= -1440) && (Time->TimeZone <= 1440)))) ||
|
(!((Time->TimeZone == EFI_UNSPECIFIED_TIMEZONE) || ((Time->TimeZone >= -1440) && (Time->TimeZone <= 1440)))) ||
|
||||||
(Time->Daylight & (~(EFI_TIME_ADJUST_DAYLIGHT | EFI_TIME_IN_DAYLIGHT)))
|
(Time->Daylight & (~(EFI_TIME_ADJUST_DAYLIGHT | EFI_TIME_IN_DAYLIGHT)))) {
|
||||||
) {
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue