diff options
author | xypron.glpk@gmx.de <xypron.glpk@gmx.de> | 2017-04-15 11:28:13 (GMT) |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-04-18 14:29:22 (GMT) |
commit | 6568c731c47bfbb137183f8f745e8168604ea8ab (patch) | |
tree | 33158c35c01348936cdddc966cfde4aaa79495b5 /fs | |
parent | ddc6a9de057e0fd0b46ba21d16a50a8d24351ef6 (diff) | |
download | u-boot-fsl-qoriq-6568c731c47bfbb137183f8f745e8168604ea8ab.tar.xz |
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/yaffs2/yaffsfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/yaffs2/yaffsfs.c b/fs/yaffs2/yaffsfs.c index 41e5f01..ba76a5c 100644 --- a/fs/yaffs2/yaffsfs.c +++ b/fs/yaffs2/yaffsfs.c @@ -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; |