summaryrefslogtreecommitdiffhomepage
path: root/config.c
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2015-02-02 16:11:23 +0100
committerSteven Barth <steven@midlink.org>2015-02-09 09:26:22 +0100
commit258b79f7a912abc84a3066c90266d8835597362e (patch)
tree9e43218ac609cf534e5040d96e4603aafdb77dd1 /config.c
parentcc8c69f2533e3c85e3631f1371a4207c2d5becce (diff)
netifd: Remove unnecessary default_config check in config_parse_interface
No need to check default_config twice as it's already checked in config_parse_interface Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'config.c')
-rw-r--r--config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.c b/config.c
index 22dd835..34d2f2b 100644
--- a/config.c
+++ b/config.c
@@ -136,7 +136,7 @@ config_parse_interface(struct uci_section *s, bool alias)
if (blob_len(b.head) == 0)
return;
- if (iface->device_config && dev->default_config)
+ if (iface->device_config)
device_set_config(dev, dev->type, b.head);
return;
error_free_config: