summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-11-03 13:01:43 +0100
committerTom Gundersen <teg@jklm.no>2015-11-11 15:42:38 +0100
commit6cf4a01c3630d87e208ef261009c8144796b64a5 (patch)
tree7da3d47d4b1dfd1442ca49edcb14317708404e86
parenta2e6fbf5c047314db036000203b42c6aac1e3511 (diff)
networkd: dhcp4 - style fixes
-rw-r--r--src/network/networkd-dhcp4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/networkd-dhcp4.c b/src/network/networkd-dhcp4.c
index b58fc5808c..b9c60a3c77 100644
--- a/src/network/networkd-dhcp4.c
+++ b/src/network/networkd-dhcp4.c
@@ -34,7 +34,7 @@ static int dhcp4_route_handler(sd_netlink *rtnl, sd_netlink_message *m,
int r;
assert(link);
- assert(link->dhcp4_messages);
+ assert(link->dhcp4_messages > 0);
link->dhcp4_messages --;
@@ -44,7 +44,7 @@ static int dhcp4_route_handler(sd_netlink *rtnl, sd_netlink_message *m,
link_enter_failed(link);
}
- if (!link->dhcp4_messages) {
+ if (link->dhcp4_messages == 0) {
link->dhcp4_configured = true;
link_check_ready(link);
}