mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-13 20:36:02 +01:00
ubifs: no NULL check needed before free
kfree() calls free. free() checks if the parameter is NULL. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
b6251db8c3
commit
4b29975fd0
@ -462,14 +462,10 @@ out:
|
|||||||
dbg_gen("cannot find next direntry, error %d", err);
|
dbg_gen("cannot find next direntry, error %d", err);
|
||||||
|
|
||||||
out_free:
|
out_free:
|
||||||
if (file->private_data)
|
kfree(file->private_data);
|
||||||
kfree(file->private_data);
|
free(file);
|
||||||
if (file)
|
free(dentry);
|
||||||
free(file);
|
free(dir);
|
||||||
if (dentry)
|
|
||||||
free(dentry);
|
|
||||||
if (dir)
|
|
||||||
free(dir);
|
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user