{
struct uci_context *ctx;
struct uci_package *p = NULL;
- struct uci_element *e;
int ret = -1;
ctx = uci_alloc_context();
struct switch_dev *dev;
struct switch_attr *a;
struct switch_val val;
- int err;
int i;
int cmd = CMD_NONE;
if(!a)
{
fprintf(stderr, "Unknown attribute \"%s\"\n", ckey);
+ retval = -1;
goto out;
}
}
out:
swlib_free_all(dev);
- return 0;
+ return retval;
}