network: drop tiny wrapper used only one place anymore

This commit is contained in:
Yu Watanabe
2022-02-01 11:37:45 +09:00
parent 3cf58ef316
commit bb193d2df2
+2 -8
View File
@@ -930,13 +930,6 @@ static void link_free_bound_by_list(Link *link) {
link_dirty(link);
}
static void link_free_carrier_maps(Link *link) {
assert(link);
link_free_bound_to_list(link);
link_free_bound_by_list(link);
}
static int link_append_to_master(Link *link) {
Link *master;
int r;
@@ -996,7 +989,8 @@ static Link *link_drop(Link *link) {
link_drop_requests(link);
link_free_carrier_maps(link);
link_free_bound_to_list(link);
link_free_bound_by_list(link);
link_drop_from_master(link);