projects
/
oweals
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc8c69f
)
netifd: Remove unnecessary default_config check in config_parse_interface
author
Hans Dedecker
<dedeckeh@gmail.com>
Mon, 2 Feb 2015 15:11:23 +0000
(16:11 +0100)
committer
Steven Barth
<steven@midlink.org>
Mon, 9 Feb 2015 08:26:22 +0000
(09:26 +0100)
No need to check default_config twice as it's already checked in config_parse_interface
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
config.c
patch
|
blob
|
history
diff --git
a/config.c
b/config.c
index 22dd8356f98e36730ca7517bf5847e1ff90329b7..34d2f2b9cd26056d9ec06ea02536b74b05843040 100644
(file)
--- 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: