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:
Yousong Zhou 2014-11-12 21:59:23 +08:00 committed by Felix Fietkau
parent 30e6cca939
commit 0d22684faa

View 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