diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-11-02 03:12:02 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-11-04 00:31:06 +0900 |
commit | 1176b054e1da1ed8e65bef0b242f71da21b569f8 (patch) | |
tree | 23d6612edf9b4464b64657ffe61dc78e1b23124e /src/network/netdev/bond.c | |
parent | f48ef53fb623a169cb5ae7324598c788dbd66bd1 (diff) | |
download | systemd-1176b054e1da1ed8e65bef0b242f71da21b569f8.tar.gz |
network: shorten code a bit
Diffstat (limited to 'src/network/netdev/bond.c')
-rw-r--r-- | src/network/netdev/bond.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/network/netdev/bond.c b/src/network/netdev/bond.c index 43019c3700..248b7b4eef 100644 --- a/src/network/netdev/bond.c +++ b/src/network/netdev/bond.c @@ -376,10 +376,8 @@ int config_parse_arp_ip_target_address(const char *unit, return 0; } - LIST_PREPEND(arp_ip_target, b->arp_ip_targets, buffer); + LIST_PREPEND(arp_ip_target, b->arp_ip_targets, TAKE_PTR(buffer)); b->n_arp_ip_targets++; - - buffer = NULL; } if (b->n_arp_ip_targets > NETDEV_BOND_ARP_TARGETS_MAX) |