Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 61effb51 authored by Al Viro's avatar Al Viro
Browse files

jffs2: S_ISLNK(mode & S_IFMT) is pointless



it's S_ISLNK(mode), TYVM...

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent da404dc0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -80,7 +80,7 @@ int jffs2_do_setattr (struct inode *inode, struct iattr *iattr)
				  ALLOC_NORMAL, JFFS2_SUMMARY_INODE_SIZE);
	if (ret) {
		jffs2_free_raw_inode(ri);
		if (S_ISLNK(inode->i_mode & S_IFMT))
		if (S_ISLNK(inode->i_mode))
			 kfree(mdata);
		return ret;
	}