diff options
author | xypron.glpk@gmx.de <xypron.glpk@gmx.de> | 2017-04-15 13:28:13 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-04-18 10:29:22 -0400 |
commit | 6568c731c47bfbb137183f8f745e8168604ea8ab (patch) | |
tree | 33158c35c01348936cdddc966cfde4aaa79495b5 /fs | |
parent | ddc6a9de057e0fd0b46ba21d16a50a8d24351ef6 (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.c | 2 |
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; |