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;
|
next = f->next;
|
||||||
free(f);
|
free(f);
|
||||||
|
|
||||||
if (next)
|
__json_script_file_free(next);
|
||||||
return __json_script_file_free(next);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Add table
Reference in a new issue