From 36136aa2189708db4916b80e10b2810e66697402 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sun, 11 Aug 2013 09:50:05 +0200 Subject: tests: remove superfluous if checking in test_json It's already done a couple of lines above. Signed-off-by: Pablo Neira Ayuso --- tests/nft-parsing-test.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'tests') diff --git a/tests/nft-parsing-test.c b/tests/nft-parsing-test.c index 8da3a4b..57dc6a5 100644 --- a/tests/nft-parsing-test.c +++ b/tests/nft-parsing-test.c @@ -167,9 +167,6 @@ static int test_json(const char *filename) return -1; } - if (root == NULL) - return -1; - json = json_dumps(root, JSON_INDENT(0)); if (json_object_get(root, "table") != NULL) { -- cgit v1.2.3