diff options
author | Rob Bradford <rob@linux.intel.com> | 2010-09-06 12:01:52 +0100 |
---|---|---|
committer | Rob Bradford <rob@linux.intel.com> | 2010-09-06 12:09:50 +0100 |
commit | f84caf121e6af179dd6cc723fd6f5af5da7e0a86 (patch) | |
tree | 811afa74137d871d8582963016dde1b08b1a1bc8 | |
parent | 9427d27e652b32e473d7f32a48189317dbe43a6a (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.c | 4 |
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; |