summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2011-07-24 23:11:33 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2011-07-26 19:00:35 +0200
commit61effb519cbf0b2973c65070a890fabfcbf84756 (patch)
treef402715c8c497e368330669d9f5fa09039e435a3 /fs
parentsnd_msnd ->mode is fmode_t, not mode_t (diff)
downloadlinux-61effb519cbf0b2973c65070a890fabfcbf84756.tar.xz
linux-61effb519cbf0b2973c65070a890fabfcbf84756.zip
jffs2: S_ISLNK(mode & S_IFMT) is pointless
it's S_ISLNK(mode), TYVM... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r--fs/jffs2/fs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/jffs2/fs.c b/fs/jffs2/fs.c
index eeead33d8ef0..b81b35ddf4e4 100644
--- a/fs/jffs2/fs.c
+++ b/fs/jffs2/fs.c
@@ -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;
}