]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: decrease and fix indentation
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 21 Dec 2018 02:31:00 +0000 (11:31 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 22 Dec 2018 22:38:55 +0000 (07:38 +0900)
src/network/networkd-address.c

index 9f0a22b82703325febcd7ed02a430074da3ad293..b4e528f0fd370c3707dceba5d3c0beaf3e2cfd05 100644 (file)
@@ -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");