diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-24 21:11:33 (GMT) |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-26 17:00:35 (GMT) |
commit | 61effb519cbf0b2973c65070a890fabfcbf84756 (patch) | |
tree | f402715c8c497e368330669d9f5fa09039e435a3 /fs | |
parent | da404dc0b1fe76b06a8d094e3ef1af9ec8252cec (diff) | |
download | linux-fsl-qoriq-61effb519cbf0b2973c65070a890fabfcbf84756.tar.xz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/jffs2/fs.c b/fs/jffs2/fs.c index eeead33..b81b35d 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; } |