mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-08-30 05:50:12 +03:00
networkd: dhcp4 - style fixes
This commit is contained in:
@ -34,7 +34,7 @@ static int dhcp4_route_handler(sd_netlink *rtnl, sd_netlink_message *m,
|
|||||||
int r;
|
int r;
|
||||||
|
|
||||||
assert(link);
|
assert(link);
|
||||||
assert(link->dhcp4_messages);
|
assert(link->dhcp4_messages > 0);
|
||||||
|
|
||||||
link->dhcp4_messages --;
|
link->dhcp4_messages --;
|
||||||
|
|
||||||
@ -44,7 +44,7 @@ static int dhcp4_route_handler(sd_netlink *rtnl, sd_netlink_message *m,
|
|||||||
link_enter_failed(link);
|
link_enter_failed(link);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!link->dhcp4_messages) {
|
if (link->dhcp4_messages == 0) {
|
||||||
link->dhcp4_configured = true;
|
link->dhcp4_configured = true;
|
||||||
link_check_ready(link);
|
link_check_ready(link);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user