1
1
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:
Tom Gundersen 2015-11-03 13:01:43 +01:00
parent a2e6fbf5c0
commit 6cf4a01c36

View File

@ -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);
} }