mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user