From b99f4d484b69e4b6a389a091728832e7877edaff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 16 May 2019 23:14:41 +0200 Subject: [PATCH] analyze: drop redundant call to calendar_spec_normalize() calendar_spec_from_string() already does that. --- src/analyze/analyze.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/analyze/analyze.c b/src/analyze/analyze.c index e6bbb179de..6121d6201b 100644 --- a/src/analyze/analyze.c +++ b/src/analyze/analyze.c @@ -1705,10 +1705,6 @@ static int test_calendar_one(usec_t n, const char *p) { if (r < 0) return log_error_errno(r, "Failed to parse calendar specification '%s': %m", p); - r = calendar_spec_normalize(spec); - if (r < 0) - return log_error_errno(r, "Failed to normalize calendar specification '%s': %m", p); - r = calendar_spec_to_string(spec, &t); if (r < 0) return log_error_errno(r, "Failed to format calendar specification '%s': %m", p);