From: Alejandro Colomar Date: Tue, 18 Feb 2025 12:13:09 +0000 (+0100) Subject: lib/getdate.y: Remove unnecessary variable X-Git-Tag: 4.18.0-rc1~103 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e4f52eb48a13c41a22c6b45fdc77fe2ce22b16a1;p=thirdparty%2Fshadow.git lib/getdate.y: Remove unnecessary variable Signed-off-by: Alejandro Colomar --- diff --git a/lib/getdate.y b/lib/getdate.y index aff782d84..2801a30eb 100644 --- a/lib/getdate.y +++ b/lib/getdate.y @@ -352,7 +352,6 @@ yylex (void) time_t get_date (const char *p, const time_t *now) { struct tm tm; - time_t Start; yyInput = p; yyHaveDate = 0; @@ -367,14 +366,7 @@ time_t get_date (const char *p, const time_t *now) tm.tm_hour = tm.tm_min = tm.tm_sec = 0; tm.tm_isdst = 0; - Start = timegm(&tm); - - if (Start == (time_t) -1) - { - return Start; - } - - return Start; + return timegm(&tm); } #if defined (TEST)