From 825be5d0cd699919fbad15901c63044f0efffe82 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 19 Jul 2011 22:39:56 +0200 Subject: [PATCH] fix one more unused-but-set variable --- lua/uci.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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; } } -- 2.30.2