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>
This commit is contained in:
parent
30e6cca939
commit
0d22684faa
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue