From f94345d9eae1b359c01761be975086870a4a9de9 Mon Sep 17 00:00:00 2001 From: Laszlo Ersek Date: Fri, 4 Sep 2020 17:45:41 +0200 Subject: EmbeddedPkg/TimeBaseLib: remove the SEC_PER_MONTH, SEC_PER_YEAR macros MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The SEC_PER_MONTH and SEC_PER_YEAR macros are wrong: they both evaluate to 0 (of type "int"). They are also unused (they could never be used for division, for example); so remove them. The macros were originally introduced in commit 0f4386e775c7 ("ArmPlatformPkg/PL031RealTimeClockLib: Implement PL031 RTC drive", 2011-06-11). Cc: Ard Biesheuvel Cc: Leif Lindholm Cc: Maciej Rabeda Cc: Philippe Mathieu-Daudé Reported-by: Maciej Rabeda Signed-off-by: Laszlo Ersek Message-Id: <20200904154541.23340-1-lersek@redhat.com> Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Leif Lindholm --- EmbeddedPkg/Include/Library/TimeBaseLib.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'EmbeddedPkg') diff --git a/EmbeddedPkg/Include/Library/TimeBaseLib.h b/EmbeddedPkg/Include/Library/TimeBaseLib.h index ee2f191..3c2d366 100644 --- a/EmbeddedPkg/Include/Library/TimeBaseLib.h +++ b/EmbeddedPkg/Include/Library/TimeBaseLib.h @@ -51,8 +51,6 @@ #define SEC_PER_MIN ((UINTN) 60) #define SEC_PER_HOUR ((UINTN) 3600) #define SEC_PER_DAY ((UINTN) 86400) -#define SEC_PER_MONTH ((UINTN) 2,592,000) -#define SEC_PER_YEAR ((UINTN) 31,536,000) BOOLEAN EFIAPI -- cgit v1.1