diff options
author | Karl Palsson <karlp@remake.is> | 2015-11-05 17:27:48 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-11-06 11:38:58 +0100 |
commit | d899c696db716171a1c92fe519579435b3118723 (patch) | |
tree | 9dc3e1c8aeba494298cf43e923e044fcc00086cf | |
parent | aaf9dff96d391f1d3fdc73dc5eb14b0d6b51085d (diff) | |
download | uci-d899c696db716171a1c92fe519579435b3118723.tar.gz |
lua: remove pointless double check of autoload flag
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>
-rw-r--r-- | lua/uci.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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) |