From 1a79aa02ae4970149824ac7711ad8c4a2971c84e Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 5 Oct 2011 18:49:08 +0200 Subject: [PATCH] minor cleanup --- interface.c | 4 +--- 1 file changed, 1 insertion(+), 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); } -- 2.25.1