mirror of
https://github.com/systemd/systemd.git
synced 2025-03-31 14:50:15 +03:00
analyze: drop redundant call to calendar_spec_normalize()
calendar_spec_from_string() already does that.
This commit is contained in:
parent
88bd5a32e8
commit
b99f4d484b
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user