mirror of
https://github.com/systemd/systemd
synced 2024-09-06 16:56:43 +00:00
network: drop unnecessary checks
By the previous commit, the checks are not necessary any more.
This commit is contained in:
parent
fdce9324c7
commit
57fe5a42f0
|
@ -39,10 +39,8 @@ RoutingPolicyRule *routing_policy_rule_free(RoutingPolicyRule *rule) {
|
|||
}
|
||||
|
||||
if (rule->manager) {
|
||||
if (set_get(rule->manager->rules, rule) == rule)
|
||||
set_remove(rule->manager->rules, rule);
|
||||
if (set_get(rule->manager->rules_foreign, rule) == rule)
|
||||
set_remove(rule->manager->rules_foreign, rule);
|
||||
set_remove(rule->manager->rules, rule);
|
||||
set_remove(rule->manager->rules_foreign, rule);
|
||||
}
|
||||
|
||||
network_config_section_free(rule->section);
|
||||
|
|
Loading…
Reference in a new issue