]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - fs/yaffs2/yaffsfs.c
Merge git://git.denx.de/u-boot-spi
[people/ms/u-boot.git] / fs / yaffs2 / yaffsfs.c
index 41e5f0108cf177a6aff51479da2360388bc01892..ba76a5ccdbdb65ab9b5d6a410c81add5f919e7ef 100644 (file)
@@ -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;