Skip to content

Commit bb193d2

Browse files
committed
network: drop tiny wrapper used only one place anymore
1 parent 3cf58ef commit bb193d2

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/network/networkd-link.c

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -930,13 +930,6 @@ static void link_free_bound_by_list(Link *link) {
930930
link_dirty(link);
931931
}
932932

933-
static void link_free_carrier_maps(Link *link) {
934-
assert(link);
935-
936-
link_free_bound_to_list(link);
937-
link_free_bound_by_list(link);
938-
}
939-
940933
static int link_append_to_master(Link *link) {
941934
Link *master;
942935
int r;
@@ -996,7 +989,8 @@ static Link *link_drop(Link *link) {
996989

997990
link_drop_requests(link);
998991

999-
link_free_carrier_maps(link);
992+
link_free_bound_to_list(link);
993+
link_free_bound_by_list(link);
1000994

1001995
link_drop_from_master(link);
1002996

0 commit comments

Comments
 (0)