diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-25 01:11:33 +0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-26 21:00:35 +0400 |
commit | 61effb519cbf0b2973c65070a890fabfcbf84756 (patch) | |
tree | f402715c8c497e368330669d9f5fa09039e435a3 | |
parent | da404dc0b1fe76b06a8d094e3ef1af9ec8252cec (diff) | |
download | linux-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>
-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 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; } |