json_script: remove unneed argument check before calling __json_script_file_free().
authorYousong Zhou <yszhou4tech@gmail.com>
Wed, 12 Nov 2014 13:59:23 +0000 (21:59 +0800)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 11 Dec 2014 16:59:22 +0000 (17:59 +0100)
NULL check is present at the begining of function body.

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
json_script.c

index 8e7f526..6a17d3b 100644 (file)
@@ -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