diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-07-19 22:39:56 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-07-19 22:39:56 +0200 |
commit | 825be5d0cd699919fbad15901c63044f0efffe82 (patch) | |
tree | 07c9838d03180129e4d35bcbcfa512a231331caf | |
parent | bb0e4cf86270740be7692a926ab92d2b635a26f8 (diff) | |
download | uci-825be5d0cd699919fbad15901c63044f0efffe82.tar.gz |
fix one more unused-but-set variablev0.8.0
-rw-r--r-- | lua/uci.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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; } } |