summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorxypron.glpk@gmx.de <xypron.glpk@gmx.de>2017-04-15 11:28:13 (GMT)
committerTom Rini <trini@konsulko.com>2017-04-18 14:29:22 (GMT)
commit6568c731c47bfbb137183f8f745e8168604ea8ab (patch)
tree33158c35c01348936cdddc966cfde4aaa79495b5 /fs
parentddc6a9de057e0fd0b46ba21d16a50a8d24351ef6 (diff)
downloadu-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.c2
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;