From: Felix Fietkau Date: Tue, 19 Jul 2011 20:39:56 +0000 (+0200) Subject: fix one more unused-but-set variable X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=825be5d0cd699919fbad15901c63044f0efffe82;p=oweals%2Fuci.git fix one more unused-but-set variable --- diff --git a/lua/uci.c b/lua/uci.c index be0246b..67ec671 100644 --- a/lua/uci.c +++ b/lua/uci.c @@ -640,7 +640,6 @@ uci_lua_package_cmd(lua_State *L, enum pkg_cmd cmd) uci_foreach_element_safe(&ctx->root, tmp, e) { struct uci_package *p = uci_to_package(e); - int ret = UCI_ERR_INVAL; if (ptr.p && (ptr.p != p)) continue; @@ -648,13 +647,13 @@ uci_lua_package_cmd(lua_State *L, enum pkg_cmd cmd) ptr.p = p; switch(cmd) { case CMD_COMMIT: - ret = uci_commit(ctx, &p, false); + uci_commit(ctx, &p, false); break; case CMD_SAVE: - ret = uci_save(ctx, p); + uci_save(ctx, p); break; case CMD_REVERT: - ret = uci_revert(ctx, &ptr); + uci_revert(ctx, &ptr); break; } }