From: Yu Watanabe Date: Thu, 1 Nov 2018 18:12:02 +0000 (+0900) Subject: network: shorten code a bit X-Git-Tag: v240~414^2~17 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1176b054e1da1ed8e65bef0b242f71da21b569f8;p=thirdparty%2Fsystemd.git network: shorten code a bit --- diff --git a/src/network/netdev/bond.c b/src/network/netdev/bond.c index 43019c37002..248b7b4eef1 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)