diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-02-26 04:17:28 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-02-26 07:01:50 +0100 |
commit | eae0d010f7ea2c95677725631e053512093254b3 (patch) | |
tree | 59c713623f490155834a35f9f5d3821a06593ff6 /src/network/netdev | |
parent | network: netdev: make link_get_local_address() refuse non-ready links and add... (diff) | |
download | systemd-eae0d010f7ea2c95677725631e053512093254b3.tar.xz systemd-eae0d010f7ea2c95677725631e053512093254b3.zip |
network: netdev: use netdev_is_stacked() at one more place
Diffstat (limited to 'src/network/netdev')
-rw-r--r-- | src/network/netdev/netdev.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/network/netdev/netdev.c b/src/network/netdev/netdev.c index 10df9a27da..e1c85d97ab 100644 --- a/src/network/netdev/netdev.c +++ b/src/network/netdev/netdev.c @@ -764,8 +764,7 @@ static int netdev_request_to_create(NetDev *netdev) { assert(netdev); - if (!IN_SET(netdev_get_create_type(netdev), NETDEV_CREATE_MASTER, NETDEV_CREATE_INDEPENDENT) && - !netdev_is_stacked_and_independent(netdev)) + if (netdev_is_stacked(netdev)) return 0; r = netdev_is_ready_to_create(netdev, NULL); |