X Tutup
Skip to content

Commit 1176b05

Browse files
committed
network: shorten code a bit
1 parent f48ef53 commit 1176b05

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/network/netdev/bond.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -376,10 +376,8 @@ int config_parse_arp_ip_target_address(const char *unit,
376376
return 0;
377377
}
378378

379-
LIST_PREPEND(arp_ip_target, b->arp_ip_targets, buffer);
379+
LIST_PREPEND(arp_ip_target, b->arp_ip_targets, TAKE_PTR(buffer));
380380
b->n_arp_ip_targets++;
381-
382-
buffer = NULL;
383381
}
384382

385383
if (b->n_arp_ip_targets > NETDEV_BOND_ARP_TARGETS_MAX)

0 commit comments

Comments
 (0)
X Tutup