summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-02-26 04:01:41 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-02-26 07:01:50 +0100
commit709841487782e60fca4a0c3cbde73ccb8f86572b (patch)
treef411f17b72ee58fcf0e9604f86653edeb681e914 /src
parentnetwork: netdev: drop NETDEV_CREATE_MASTER (diff)
downloadsystemd-709841487782e60fca4a0c3cbde73ccb8f86572b.tar.xz
systemd-709841487782e60fca4a0c3cbde73ccb8f86572b.zip
network: adjust assertions
Diffstat (limited to 'src')
-rw-r--r--src/network/networkd-bridge-mdb.c1
-rw-r--r--src/network/networkd-nexthop.c3
2 files changed, 2 insertions, 2 deletions
diff --git a/src/network/networkd-bridge-mdb.c b/src/network/networkd-bridge-mdb.c
index bf9e49ae39..af01a89f47 100644
--- a/src/network/networkd-bridge-mdb.c
+++ b/src/network/networkd-bridge-mdb.c
@@ -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);
diff --git a/src/network/networkd-nexthop.c b/src/network/networkd-nexthop.c
index 07596821d0..8f555d9685 100644
--- a/src/network/networkd-nexthop.c
+++ b/src/network/networkd-nexthop.c
@@ -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);