summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-07-19 22:39:56 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-07-19 22:39:56 +0200
commit825be5d0cd699919fbad15901c63044f0efffe82 (patch)
tree07c9838d03180129e4d35bcbcfa512a231331caf
parentbb0e4cf86270740be7692a926ab92d2b635a26f8 (diff)
downloaduci-825be5d0cd699919fbad15901c63044f0efffe82.tar.gz
fix one more unused-but-set variablev0.8.0
-rw-r--r--lua/uci.c7
1 files 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;
}
}