*: fix some inconsistent control statement style

This commit is contained in:
Vito Caputo
2017-12-01 16:49:52 -08:00
parent 4da47778e5
commit 508f63b411
10 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -142,7 +142,7 @@ static int append_vlan_info_data(Link *const link, sd_netlink_message *req, uint
next:
i = j;
} while(!done);
} while (!done);
}
if (!cnt)
return -EINVAL;
+1 -1
View File
@@ -3272,7 +3272,7 @@ int link_update(Link *link, sd_netlink_message *m) {
ARPHRD_ETHER,
(const uint8_t *)&link->mac,
sizeof(link->mac));
if(r < 0)
if (r < 0)
return log_link_warning_errno(link, r, "Could not update MAC client id in DHCP client: %m");
break;
default:
+1 -1
View File
@@ -816,7 +816,7 @@ int manager_rtnl_process_rule(sd_netlink *rtnl, sd_netlink_message *message, voi
switch (type) {
case RTM_NEWRULE:
if(!rule) {
if (!rule) {
r = routing_policy_rule_add_foreign(m, family, &from, from_prefixlen, &to, to_prefixlen, tos, fwmark, table, iif, oif, &rule);
if (r < 0) {
log_warning_errno(r, "Could not add rule: %m");