From 20063bd1c80f042a62cae0c75953ebeb2e1a3df5 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sun, 22 Aug 2010 13:38:39 -0700 Subject: [PATCH] json: Remove unused return value from json_parser_push(). No point in returning a value that no caller uses. --- lib/json.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; } } -- 2.43.0