From d899c696db716171a1c92fe519579435b3118723 Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Thu, 5 Nov 2015 17:27:48 +0000 Subject: [PATCH] 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 --- lua/uci.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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) -- 2.30.2