From 0d22684faaeae98f6fea23fbf2000d423261fe5f Mon Sep 17 00:00:00 2001 From: Yousong Zhou Date: Wed, 12 Nov 2014 21:59:23 +0800 Subject: [PATCH] json_script: remove unneed argument check before calling __json_script_file_free(). NULL check is present at the begining of function body. Signed-off-by: Yousong Zhou --- json_script.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/json_script.c b/json_script.c index 8e7f526..6a17d3b 100644 --- a/json_script.c +++ b/json_script.c @@ -592,8 +592,7 @@ static void __json_script_file_free(struct json_script_file *f) next = f->next; free(f); - if (next) - return __json_script_file_free(next); + __json_script_file_free(next); } void -- 2.25.1