mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-06 13:17:44 +03:00
networkd: dhcp4 - style fixes
This commit is contained in:
parent
a2e6fbf5c0
commit
6cf4a01c36
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user