diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-05-14 22:46:01 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-05-14 22:46:01 +0200 |
commit | b9642f4199b7ab4560665539a4378730e01f7b7f (patch) | |
tree | 6281e0320462b83c96aa654eccf0bacc7b8ba1f6 /src/network/networkd-route.c | |
parent | busctl: use Monitoring interface (#3245) (diff) | |
download | systemd-b9642f4199b7ab4560665539a4378730e01f7b7f.tar.xz systemd-b9642f4199b7ab4560665539a4378730e01f7b7f.zip |
networkd: drop route_drop
It is just an alias for route_free which requires that route is not null,
but it was only used in one place where it was checked that route is not
null anyway. Let's just call route_free instead.
Diffstat (limited to '')
-rw-r--r-- | src/network/networkd-route.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/network/networkd-route.c b/src/network/networkd-route.c index 43f37266d8..ab4a94f41a 100644 --- a/src/network/networkd-route.c +++ b/src/network/networkd-route.c @@ -324,12 +324,6 @@ int route_update(Route *route, return 0; } -void route_drop(Route *route) { - assert(route); - - route_free(route); -} - int route_remove(Route *route, Link *link, sd_netlink_message_handler_t callback) { _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL; |