diff options
Diffstat (limited to 'src/network/networkd-veth.c')
-rw-r--r-- | src/network/networkd-veth.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/network/networkd-veth.c b/src/network/networkd-veth.c index 3eac90ba90..50a5b676b1 100644 --- a/src/network/networkd-veth.c +++ b/src/network/networkd-veth.c @@ -122,6 +122,7 @@ int netdev_create_veth(NetDev *netdev, sd_rtnl_message_handler_t callback) { assert(netdev->ifname); assert(netdev->manager); assert(netdev->manager->rtnl); + assert(netdev->kind == NETDEV_KIND_VETH); r = sd_rtnl_message_new_link(netdev->manager->rtnl, &m, RTM_NEWLINK, 0); if (r < 0) { @@ -131,9 +132,6 @@ int netdev_create_veth(NetDev *netdev, sd_rtnl_message_handler_t callback) { return r; } - if(netdev->kind != NETDEV_KIND_VETH) - return -ENOTSUP; - r = netdev_fill_veth_rtnl_message(netdev, m); if(r < 0) return r; |