analyze: drop redundant call to calendar_spec_normalize()

calendar_spec_from_string() already does that.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2019-05-16 23:14:41 +02:00
parent 88bd5a32e8
commit b99f4d484b

View 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);