projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da404dc
)
jffs2: S_ISLNK(mode & S_IFMT) is pointless
author
Al Viro
<viro@zeniv.linux.org.uk>
Sun, 24 Jul 2011 21:11:33 +0000
(17:11 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Tue, 26 Jul 2011 17:00:35 +0000
(13:00 -0400)
it's S_ISLNK(mode), TYVM...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/jffs2/fs.c
patch
|
blob
|
history
diff --git
a/fs/jffs2/fs.c
b/fs/jffs2/fs.c
index eeead33d8ef0e617901fc7762891e8d24cde4c8f..b81b35ddf4e47bd75b321c2c471dada1fcbad109 100644
(file)
--- 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;
}