diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-12-21 11:31:00 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-12-23 07:38:55 +0900 |
commit | 66e0bb336e0325e360884c39b7402c5d91a047ec (patch) | |
tree | bd5a18aa52e81c9ca4c4575709b18ec7313fe661 /src/network/networkd-address.c | |
parent | 8eab766804ef4fa21d26c00fd0baab3f1a47bb5c (diff) | |
download | systemd-66e0bb336e0325e360884c39b7402c5d91a047ec.tar.gz |
network: decrease and fix indentation
Diffstat (limited to 'src/network/networkd-address.c')
-rw-r--r-- | src/network/networkd-address.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/network/networkd-address.c b/src/network/networkd-address.c index 9f0a22b827..b4e528f0fd 100644 --- a/src/network/networkd-address.c +++ b/src/network/networkd-address.c @@ -632,14 +632,10 @@ int address_configure( r = sd_netlink_message_append_in6_addr(req, IFA_ADDRESS, &address->in_addr_peer.in6); if (r < 0) return log_error_errno(r, "Could not append IFA_ADDRESS attribute: %m"); - } else { - if (address->family == AF_INET) { - if (address->prefixlen <= 30) { - r = sd_netlink_message_append_in_addr(req, IFA_BROADCAST, &address->broadcast); - if (r < 0) - return log_error_errno(r, "Could not append IFA_BROADCAST attribute: %m"); - } - } + } else if (address->family == AF_INET && address->prefixlen <= 30) { + r = sd_netlink_message_append_in_addr(req, IFA_BROADCAST, &address->broadcast); + if (r < 0) + return log_error_errno(r, "Could not append IFA_BROADCAST attribute: %m"); } if (address->label) { @@ -648,8 +644,7 @@ int address_configure( return log_error_errno(r, "Could not append IFA_LABEL attribute: %m"); } - r = sd_netlink_message_append_cache_info(req, IFA_CACHEINFO, - &address->cinfo); + r = sd_netlink_message_append_cache_info(req, IFA_CACHEINFO, &address->cinfo); if (r < 0) return log_error_errno(r, "Could not append IFA_CACHEINFO attribute: %m"); |