From: Hans Dedecker Date: Mon, 2 Feb 2015 15:11:23 +0000 (+0100) Subject: netifd: Remove unnecessary default_config check in config_parse_interface X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=258b79f7a912abc84a3066c90266d8835597362e;p=oweals%2Fnetifd.git 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 --- 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: