summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Bradford <rob@linux.intel.com>2010-09-06 12:01:52 +0100
committerRob Bradford <rob@linux.intel.com>2010-09-06 12:09:50 +0100
commitf84caf121e6af179dd6cc723fd6f5af5da7e0a86 (patch)
tree811afa74137d871d8582963016dde1b08b1a1bc8
parent9427d27e652b32e473d7f32a48189317dbe43a6a (diff)
xml-parser: Remove unread 'res' variable
We never read from this variable apart from in the loop so we can instead simply compare the result of the function.
-rw-r--r--rest/rest-xml-parser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rest/rest-xml-parser.c b/rest/rest-xml-parser.c
index ae3797b..84f1687 100644
--- a/rest/rest-xml-parser.c
+++ b/rest/rest-xml-parser.c
@@ -300,7 +300,7 @@ rest_xml_parser_parse_from_data (RestXmlParser *parser,
NULL, /* encoding */
XML_PARSE_RECOVER | XML_PARSE_NOCDATA);
- while ((res = xmlTextReaderRead (reader)) == 1)
+ while (xmlTextReaderRead (reader) == 1)
{
switch (xmlTextReaderNodeType (reader))
{
@@ -375,7 +375,7 @@ rest_xml_parser_parse_from_data (RestXmlParser *parser,
attr_name,
attr_value);
- } while ((res = xmlTextReaderMoveToNextAttribute (reader)) == 1);
+ } while (xmlTextReaderMoveToNextAttribute (reader) == 1);
}
break;