[Libosinfo] [PATCH 1/5] osinfo_loader: don't wrap return value with parentheses
Giuseppe Scrivano
gscrivan at redhat.com
Wed Jun 4 09:50:53 UTC 2014
Signed-off-by: Giuseppe Scrivano <gscrivan at redhat.com>
---
osinfo/osinfo_loader.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/osinfo/osinfo_loader.c b/osinfo/osinfo_loader.c
index aa5e48f..685352b 100644
--- a/osinfo/osinfo_loader.c
+++ b/osinfo/osinfo_loader.c
@@ -138,16 +138,16 @@ osinfo_loader_nodeset(const char *xpath,
obj = xmlXPathEval(BAD_CAST xpath, ctxt);
ctxt->node = relnode;
if (obj == NULL)
- return(0);
+ return 0;
if (obj->type != XPATH_NODESET) {
g_set_error(err, g_quark_from_static_string("libosinfo"), 0,
_("Expected a nodeset in XPath query %s"), xpath);
xmlXPathFreeObject(obj);
- return (-1);
+ return -1;
}
if ((obj->nodesetval == NULL) || (obj->nodesetval->nodeNr < 0)) {
xmlXPathFreeObject(obj);
- return (0);
+ return 0;
}
ret = obj->nodesetval->nodeNr;
@@ -157,7 +157,7 @@ osinfo_loader_nodeset(const char *xpath,
ret * sizeof(xmlNodePtr));
}
xmlXPathFreeObject(obj);
- return (ret);
+ return ret;
}
static gchar *
--
1.9.3
More information about the Libosinfo
mailing list