summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-10-05 18:49:08 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-10-05 18:49:08 +0200
commit1a79aa02ae4970149824ac7711ad8c4a2971c84e (patch)
tree0506bbace000521d68073840003acde5de1dcc9c
parent69485f59ad87c5f3a706248b62c4205e9e659d8b (diff)
minor cleanup
-rw-r--r--interface.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/interface.c b/interface.c
index 62617e2..fa4b225 100644
--- a/interface.c
+++ b/interface.c
@@ -308,11 +308,9 @@ interface_add(struct interface *iface, struct blob_attr *config)
blobmsg_parse(iface_attrs, IFACE_ATTR_MAX, tb,
blob_data(config), blob_len(config));
- if ((cur = tb[IFACE_ATTR_IFNAME])) {
+ if ((cur = tb[IFACE_ATTR_IFNAME]))
iface->ifname = blobmsg_data(cur);
- }
-
iface->config = config;
vlist_add(&interfaces, &iface->node);
}