No need to check default_config twice as it's already checked in 
config_parse_interface

Signed-off-by: Hans Dedecker <dedec...@gmail.com>
---
 config.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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:
-- 
1.9.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to