projects
/
project
/
uci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aaf9dff
)
lua: remove pointless double check of autoload flag
author
Karl Palsson
<karlp@remake.is>
Thu, 5 Nov 2015 17:27:48 +0000
(17:27 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Fri, 6 Nov 2015 10:38:58 +0000
(11:38 +0100)
In
e2b1433b
the autoload param went from being an enumerated type to a
simple boolean. Drop the pointless double check of this flag.
Signed-off-by: Karl Palsson <karlp@remake.is>
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
lua/uci.c
patch
|
blob
|
history
diff --git
a/lua/uci.c
b/lua/uci.c
index 1cb31a594c7823144dd5200c7656b38c4ea4d65b..47d59c883ab9320b39304fdd46297576c3550fa1 100644
(file)
--- a/
lua/uci.c
+++ b/
lua/uci.c
@@
-113,11
+113,8
@@
find_package(lua_State *L, struct uci_context *ctx, const char *str, bool al)
goto done;
}
- if (al
== true
)
+ if (al)
uci_load(ctx, name, &p);
- else if (al) {
- uci_load(ctx, name, &p);
- }
done:
if (name != str)