From: Zbigniew Jędrzejewski-Szmek Date: Thu, 16 May 2019 21:14:41 +0000 (+0200) Subject: analyze: drop redundant call to calendar_spec_normalize() X-Git-Tag: v243-rc1~363^2~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b99f4d484b69e4b6a389a091728832e7877edaff;p=thirdparty%2Fsystemd.git analyze: drop redundant call to calendar_spec_normalize() calendar_spec_from_string() already does that. --- diff --git a/src/analyze/analyze.c b/src/analyze/analyze.c index e6bbb179dea..6121d6201bd 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);