Skip to content

Commit

Permalink
jffs2: S_ISLNK(mode & S_IFMT) is pointless
Browse files Browse the repository at this point in the history
it's S_ISLNK(mode), TYVM...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Jul 26, 2011
1 parent da404dc commit 61effb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/jffs2/fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 61effb5

Please sign in to comment.