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:
Nhi Pham 2021-01-06 23:09:01 +07:00 committed by mergify[bot]
parent 48de23e548
commit ad16388d69
1 changed files with 11 additions and 12 deletions

View File

@ -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;
} }