From: Yu Watanabe Date: Thu, 15 Jul 2021 04:21:59 +0000 (+0900) Subject: network: drop unused "after_configure" feature for nexthops, neighbors, and routing... X-Git-Tag: v250-rc1~698^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F20699%2Fhead;p=thirdparty%2Fsystemd.git network: drop unused "after_configure" feature for nexthops, neighbors, and routing policy rules --- diff --git a/src/network/networkd-neighbor.c b/src/network/networkd-neighbor.c index d5a8b6e97ee..70d1828c9d8 100644 --- a/src/network/networkd-neighbor.c +++ b/src/network/networkd-neighbor.c @@ -477,15 +477,6 @@ int request_process_neighbor(Request *req) { if (r < 0) return r; - /* To prevent a double decrement on failure in after_configure(). */ - req->message_counter = NULL; - - if (req->after_configure) { - r = req->after_configure(req, ret); - if (r < 0) - return r; - } - return 1; } diff --git a/src/network/networkd-nexthop.c b/src/network/networkd-nexthop.c index 5584d450255..0015ab4c0c1 100644 --- a/src/network/networkd-nexthop.c +++ b/src/network/networkd-nexthop.c @@ -812,15 +812,6 @@ int request_process_nexthop(Request *req) { if (r < 0) return r; - /* To prevent a double decrement on failure in after_configure(). */ - req->message_counter = NULL; - - if (req->after_configure) { - r = req->after_configure(req, ret); - if (r < 0) - return r; - } - return 1; } diff --git a/src/network/networkd-routing-policy-rule.c b/src/network/networkd-routing-policy-rule.c index 1e56b79d84d..39ec80490f7 100644 --- a/src/network/networkd-routing-policy-rule.c +++ b/src/network/networkd-routing-policy-rule.c @@ -884,15 +884,6 @@ int request_process_routing_policy_rule(Request *req) { if (r < 0) return r; - /* To prevent a double decrement on failure in after_configure(). */ - req->message_counter = NULL; - - if (req->after_configure) { - r = req->after_configure(req, ret); - if (r < 0) - return r; - } - return 1; }