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:
xypron.glpk@gmx.de 2017-04-15 13:28:13 +02:00 committed by Tom Rini
parent ddc6a9de05
commit 6568c731c4

View file

@ -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;