json_script: remove unneed argument check before calling __json_script_file_free().
[project/libubox.git] / json_script.c
index 8e7f5265ed4d42e9a784b6bcef14b818e6bebe78..6a17d3bd1ff7be7737ca322a30a3e9f46245f288 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