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
@ -3018,7 +3018,7 @@ int yaffs_symlink(const YCHAR *oldpath, const YCHAR *newpath)
|
||||
yaffsfs_SetError(-ENFILE);
|
||||
else if (parent->my_dev->read_only)
|
||||
yaffsfs_SetError(-EROFS);
|
||||
else if (parent) {
|
||||
else {
|
||||
obj = yaffs_create_symlink(parent, name, mode, 0, 0, oldpath);
|
||||
if (obj)
|
||||
retVal = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user