diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-10-05 18:49:08 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-10-05 18:49:08 +0200 |
commit | 1a79aa02ae4970149824ac7711ad8c4a2971c84e (patch) | |
tree | 0506bbace000521d68073840003acde5de1dcc9c | |
parent | 69485f59ad87c5f3a706248b62c4205e9e659d8b (diff) |
minor cleanup
-rw-r--r-- | interface.c | 4 |
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); } |