Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYousong Zhou <yszhou4tech@gmail.com>2014-11-12 16:59:23 +0300
committerFelix Fietkau <nbd@openwrt.org>2014-12-11 19:59:22 +0300
commit0d22684faaeae98f6fea23fbf2000d423261fe5f (patch)
tree3015e27a9d4254880ca1a92152c9c8776783c5e5 /json_script.c
parent30e6cca9396f770f3387fff8bef0a6645571c46c (diff)
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 <yszhou4tech@gmail.com>
Diffstat (limited to 'json_script.c')
-rw-r--r--json_script.c3
1 files changed, 1 insertions, 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