Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

get rid of pointless checks for NULL ->i_op

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro 627bf81a 05faf316

+5 -7
-1
fs/cachefiles/bind.c
··· 124 124 /* check parameters */ 125 125 ret = -EOPNOTSUPP; 126 126 if (!root->d_inode || 127 - !root->d_inode->i_op || 128 127 !root->d_inode->i_op->lookup || 129 128 !root->d_inode->i_op->mkdir || 130 129 !root->d_inode->i_op->setxattr ||
+1 -2
fs/cachefiles/namei.c
··· 779 779 } 780 780 781 781 ret = -EPERM; 782 - if (!subdir->d_inode->i_op || 783 - !subdir->d_inode->i_op->setxattr || 782 + if (!subdir->d_inode->i_op->setxattr || 784 783 !subdir->d_inode->i_op->getxattr || 785 784 !subdir->d_inode->i_op->lookup || 786 785 !subdir->d_inode->i_op->mkdir ||
+1 -1
security/integrity/evm/evm_crypto.c
··· 137 137 int error; 138 138 int size; 139 139 140 - if (!inode->i_op || !inode->i_op->getxattr) 140 + if (!inode->i_op->getxattr) 141 141 return -EOPNOTSUPP; 142 142 desc = init_desc(type); 143 143 if (IS_ERR(desc))
+1 -1
security/integrity/evm/evm_main.c
··· 62 62 int error; 63 63 int count = 0; 64 64 65 - if (!inode->i_op || !inode->i_op->getxattr) 65 + if (!inode->i_op->getxattr) 66 66 return -EOPNOTSUPP; 67 67 68 68 for (xattr = evm_config_xattrnames; *xattr != NULL; xattr++) {
+2 -2
security/tomoyo/realpath.c
··· 173 173 * Use filesystem name if filesystem does not support rename() 174 174 * operation. 175 175 */ 176 - if (inode->i_op && !inode->i_op->rename) 176 + if (!inode->i_op->rename) 177 177 goto prepend_filesystem_name; 178 178 } 179 179 /* Prepend device name. */ ··· 282 282 * Get local name for filesystems without rename() operation 283 283 * or dentry without vfsmount. 284 284 */ 285 - if (!path->mnt || (inode->i_op && !inode->i_op->rename)) 285 + if (!path->mnt || !inode->i_op->rename) 286 286 pos = tomoyo_get_local_path(path->dentry, buf, 287 287 buf_len - 1); 288 288 /* Get absolute name for the rest. */