*: fix some inconsistent control statement style
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user