projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f48ef53
)
network: shorten code a bit
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Thu, 1 Nov 2018 18:12:02 +0000
(
03:12
+0900)
committer
Yu Watanabe
<watanabe.yu+github@gmail.com>
Sat, 3 Nov 2018 15:31:06 +0000
(
00:31
+0900)
src/network/netdev/bond.c
patch
|
blob
|
history
diff --git
a/src/network/netdev/bond.c
b/src/network/netdev/bond.c
index
43019c3
..
248b7b4
100644
(file)
--- 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)