From: Ben Pfaff Date: Sun, 22 Aug 2010 20:38:39 +0000 (-0700) Subject: json: Remove unused return value from json_parser_push(). X-Git-Tag: v1.1.0pre1~44 X-Git-Url: http://git.onelab.eu/?p=sliver-openvswitch.git;a=commitdiff_plain;h=20063bd1c80f042a62cae0c75953ebeb2e1a3df5 json: Remove unused return value from json_parser_push(). No point in returning a value that no caller uses. --- diff --git a/lib/json.c b/lib/json.c index b08540ec5..3b70e6bdb 100644 --- a/lib/json.c +++ b/lib/json.c @@ -1186,7 +1186,7 @@ json_parser_put_value(struct json_parser *p, struct json *value) } } -static struct json_parser_node * +static void json_parser_push(struct json_parser *p, struct json *new_json, enum json_parse_state new_state) { @@ -1205,12 +1205,10 @@ json_parser_push(struct json_parser *p, node = &p->stack[p->height++]; node->json = new_json; p->parse_state = new_state; - return node; } else { json_destroy(new_json); json_error(p, "input exceeds maximum nesting depth %d", JSON_MAX_HEIGHT); - return NULL; } }