summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorSusant Sahani <ssahani@users.noreply.github.com>2016-10-06 15:15:07 +0530
committerLennart Poettering <lennart@poettering.net>2016-10-06 11:45:07 +0200
commit197e2809320357772c0d2def0b53474a4b1f07fd (patch)
tree2d51798f265081d52f0f006bd5403486e9e2f431 /src/network
parentd2665e0866772663ad7c774c05bf2e0dc8ddcb04 (diff)
networkd: fix coding style (#4294)
Diffstat (limited to 'src/network')
-rw-r--r--src/network/networkd-link.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c
index 25f46c093e..d9e060b6cf 100644
--- a/src/network/networkd-link.c
+++ b/src/network/networkd-link.c
@@ -944,16 +944,15 @@ static int link_push_ntp_to_dhcp_server(Link *link, sd_dhcp_server *s) {
static int link_set_bridge_fdb(Link *link) {
FdbEntry *fdb_entry;
- int r = 0;
+ int r;
LIST_FOREACH(static_fdb_entries, fdb_entry, link->network->static_fdb_entries) {
r = fdb_entry_configure(link, fdb_entry);
- if (r < 0) {
+ if (r < 0)
return log_link_error_errno(link, r, "Failed to add MAC entry to static MAC table: %m");
- }
}
- return r;
+ return 0;
}
static int link_enter_set_addresses(Link *link) {