Skip to content

Commit c2babfc

Browse files
committed
networkd: rewrite condition to make it easier to understand
1 parent 521ff2f commit c2babfc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/network/networkd-link.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,8 @@ void link_check_ready(Link *link) {
965965
return;
966966

967967
if ((link_dhcp4_enabled(link) || link_dhcp6_enabled(link)) &&
968-
!(link->dhcp4_configured || link->dhcp6_configured) &&
968+
!link->dhcp4_configured &&
969+
!link->dhcp6_configured &&
969970
!(link_ipv4ll_enabled(link, ADDRESS_FAMILY_FALLBACK_IPV4) && link->ipv4ll_address && link->ipv4ll_route))
970971
/* When DHCP is enabled, at least one protocol must provide an address, or
971972
* an IPv4ll fallback address must be configured. */

0 commit comments

Comments
 (0)