From: Karl Palsson Date: Thu, 5 Nov 2015 17:27:48 +0000 (+0000) Subject: lua: remove pointless double check of autoload flag X-Git-Url: http://git.openwrt.org/?p=project%2Fuci.git;a=commitdiff_plain;h=d899c696db716171a1c92fe519579435b3118723 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 Signed-off-by: Felix Fietkau --- diff --git a/lua/uci.c b/lua/uci.c index 1cb31a5..47d59c8 100644 --- 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)