summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorxypron.glpk@gmx.de <xypron.glpk@gmx.de>2017-04-15 13:28:13 +0200
committerTom Rini <trini@konsulko.com>2017-04-18 10:29:22 -0400
commit6568c731c47bfbb137183f8f745e8168604ea8ab (patch)
tree33158c35c01348936cdddc966cfde4aaa79495b5 /fs
parentddc6a9de057e0fd0b46ba21d16a50a8d24351ef6 (diff)
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 41e5f0108cf..ba76a5ccdbd 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;