]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
analyze: drop redundant call to calendar_spec_normalize()
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 16 May 2019 21:14:41 +0000 (23:14 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 16 May 2019 21:14:41 +0000 (23:14 +0200)
calendar_spec_from_string() already does that.

src/analyze/analyze.c

index e6bbb179dea6cdf3663562d6294c043f9be83e20..6121d6201bdef6744ccc30f673409c0d4af1e932 100644 (file)
@@ -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);