revert clixon-err on XML

restconf backend config
This commit is contained in:
Olof hagsand 2020-11-17 14:42:12 +01:00
parent eb549b4c21
commit daaf3f17df
10 changed files with 52 additions and 31 deletions

View file

@ -376,7 +376,6 @@ char*
xml_name(cxobj *xn)
{
if (xn == NULL) {
clicon_err(OE_XML, EINVAL, "x is NULL");
return NULL;
}
return xn->x_name;
@ -570,7 +569,6 @@ cxobj*
xml_parent(cxobj *xn)
{
if (xn == NULL) {
clicon_err(OE_XML, EINVAL, "xn is NULL");
return NULL;
}
return xn->x_up;
@ -713,7 +711,6 @@ enum cxobj_type
xml_type(cxobj *xn)
{
if (xn == NULL) {
clicon_err(OE_XML, EINVAL, "xn is NULL");
return CX_ERROR;
}
return xn->x_type;
@ -808,7 +805,6 @@ xml_child_i(cxobj *xn,
int i)
{
if (xn == NULL || i < 0) {
clicon_err(OE_XML, EINVAL, "xn is NULL or invalid child nr");
return NULL;
}
if (!is_element(xn))
@ -1221,7 +1217,6 @@ xml_find(cxobj *xp,
cxobj *x = NULL;
if (xp == NULL || name == NULL) {
clicon_err(OE_XML, EINVAL, "xp or name is NULL");
return NULL;
}
if (!is_element(xp))
@ -1838,8 +1833,7 @@ xml_free(cxobj *x)
cxobj *xc;
if (x == NULL){
clicon_err(OE_XML, EINVAL, "x is NULL");
return -1;
return 0;
}
if (x->x_name)
free(x->x_name);