network: drop redundant condition

When Network::unmanaged is set, then the Network object is not assigned
to any Link object. Hence, the condition is always false.
This commit is contained in:
Yu Watanabe
2021-05-18 04:52:53 +09:00
parent 3a1dfdb43f
commit 8e4b1b35bc

View File

@@ -138,7 +138,7 @@ bool link_ipv6_enabled(Link *link) {
bool link_is_ready_to_configure(Link *link, bool allow_unmanaged) {
assert(link);
if (!link->network || link->network->unmanaged) {
if (!link->network) {
if (!allow_unmanaged)
return false;