commit | 627bf81ac625f05060db033a0f3791521ad7bd79 | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Sat Feb 01 04:43:32 2014 -0500 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Tue Apr 01 23:19:16 2014 -0400 |
tree | 5c88cb13dae2529cf4c778416c88b6c13cd4f38f | |
parent | 05faf3169f039cb03ebabdfee6eda0e7ada5ea11 [diff] [blame] |
get rid of pointless checks for NULL ->i_op Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
diff --git a/fs/cachefiles/namei.c b/fs/cachefiles/namei.c index ca65f39..1b1283b 100644 --- a/fs/cachefiles/namei.c +++ b/fs/cachefiles/namei.c
@@ -779,8 +779,7 @@ } ret = -EPERM; - if (!subdir->d_inode->i_op || - !subdir->d_inode->i_op->setxattr || + if (!subdir->d_inode->i_op->setxattr || !subdir->d_inode->i_op->getxattr || !subdir->d_inode->i_op->lookup || !subdir->d_inode->i_op->mkdir ||