projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
swconfig: remove useless variables, return -1 on errors
[openwrt.git]
/
package
/
network
/
config
/
swconfig
/
src
/
uci.c
diff --git
a/package/network/config/swconfig/src/uci.c
b/package/network/config/swconfig/src/uci.c
index
893e3d1
..
bbeeb03
100644
(file)
--- 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;
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);
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;
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;
struct uci_element *e;
struct uci_section *s;
struct uci_option *o;