aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/config/swconfig/src/uci.c
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2013-12-27 21:15:20 +0000
committerJohn Crispin <john@openwrt.org>2013-12-27 21:15:20 +0000
commitd1156bca0a2e3981aad62d6cc9155f71c01c3915 (patch)
treea445ddce6261d9b524417ef6de6bd6ab0a1fa32d /package/network/config/swconfig/src/uci.c
parent834204bda64d78c5c2d6228c236246291a1ed7d8 (diff)
downloadupstream-d1156bca0a2e3981aad62d6cc9155f71c01c3915.tar.gz
upstream-d1156bca0a2e3981aad62d6cc9155f71c01c3915.tar.bz2
upstream-d1156bca0a2e3981aad62d6cc9155f71c01c3915.zip
swconfig: remove useless variables, return -1 on errors
spotted with cppcheck Signed-off-by: Etienne CHAMPETIER <etienne.champetier@free.fr> SVN-Revision: 39170
Diffstat (limited to 'package/network/config/swconfig/src/uci.c')
-rw-r--r--package/network/config/swconfig/src/uci.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/package/network/config/swconfig/src/uci.c b/package/network/config/swconfig/src/uci.c
index 893e3d1dd8..bbeeb03111 100644
--- a/package/network/config/swconfig/src/uci.c
+++ b/package/network/config/swconfig/src/uci.c
@@ -66,7 +66,6 @@ swlib_map_settings(struct switch_dev *dev, int type, int port_vlan, struct uci_s
struct switch_attr *attr;
struct uci_element *e;
struct uci_option *o;
- int i;
uci_foreach_element(&s->options, e) {
o = uci_to_option(e);
@@ -109,7 +108,6 @@ skip:
int swlib_apply_from_uci(struct switch_dev *dev, struct uci_package *p)
{
struct switch_attr *attr;
- struct uci_context *ctx = p->ctx;
struct uci_element *e;
struct uci_section *s;
struct uci_option *o;