1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00

network: adjust assertions

This commit is contained in:
Yu Watanabe 2022-02-26 12:01:41 +09:00
parent 97b2bc3506
commit 7098414877
2 changed files with 2 additions and 2 deletions

View File

@ -121,7 +121,6 @@ static int bridge_mdb_configure(BridgeMDB *mdb, Link *link, link_netlink_message
assert(mdb);
assert(link);
assert(link->network);
assert(link->manager);
assert(callback);

View File

@ -433,11 +433,12 @@ static int nexthop_configure(
_cleanup_(sd_netlink_message_unrefp) sd_netlink_message *m = NULL;
int r;
assert(nexthop);
assert(IN_SET(nexthop->family, AF_UNSPEC, AF_INET, AF_INET6));
assert(link);
assert(link->manager);
assert(link->manager->rtnl);
assert(link->ifindex > 0);
assert(IN_SET(nexthop->family, AF_UNSPEC, AF_INET, AF_INET6));
assert(callback);
log_nexthop_debug(nexthop, "Configuring", link);