mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 07:31:15 +00:00
yaffs2: remove redundant condition
If !parent, the changed line is not reached. So there is no need to check the value again. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
ddc6a9de05
commit
6568c731c4
1 changed files with 1 additions and 1 deletions
|
@ -3018,7 +3018,7 @@ int yaffs_symlink(const YCHAR *oldpath, const YCHAR *newpath)
|
||||||
yaffsfs_SetError(-ENFILE);
|
yaffsfs_SetError(-ENFILE);
|
||||||
else if (parent->my_dev->read_only)
|
else if (parent->my_dev->read_only)
|
||||||
yaffsfs_SetError(-EROFS);
|
yaffsfs_SetError(-EROFS);
|
||||||
else if (parent) {
|
else {
|
||||||
obj = yaffs_create_symlink(parent, name, mode, 0, 0, oldpath);
|
obj = yaffs_create_symlink(parent, name, mode, 0, 0, oldpath);
|
||||||
if (obj)
|
if (obj)
|
||||||
retVal = 0;
|
retVal = 0;
|
||||||
|
|
Loading…
Reference in a new issue