diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-03-25 15:22:49 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-03-28 00:47:28 -0400 |
commit | 8db0185659c33143915768bdd33fc2fb1b1cbb58 (patch) | |
tree | 536b1ad3e0c389aab15ae72b9f71f7f2fdb222d0 /security | |
parent | d360775217070ff0f4291e47d3f568f0fe0b7374 (diff) |
apparmor: remove useless checks for NULL ->mnt
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'security')
-rw-r--r-- | security/apparmor/lsm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/apparmor/lsm.c b/security/apparmor/lsm.c index 7ae540565097..eadaa58bd6fd 100644 --- a/security/apparmor/lsm.c +++ b/security/apparmor/lsm.c | |||
@@ -215,7 +215,7 @@ static int common_perm_rm(int op, const struct path *dir, | |||
215 | struct inode *inode = d_backing_inode(dentry); | 215 | struct inode *inode = d_backing_inode(dentry); |
216 | struct path_cond cond = { }; | 216 | struct path_cond cond = { }; |
217 | 217 | ||
218 | if (!inode || !dir->mnt || !mediated_filesystem(dentry)) | 218 | if (!inode || !mediated_filesystem(dentry)) |
219 | return 0; | 219 | return 0; |
220 | 220 | ||
221 | cond.uid = inode->i_uid; | 221 | cond.uid = inode->i_uid; |
@@ -239,7 +239,7 @@ static int common_perm_create(int op, const struct path *dir, | |||
239 | { | 239 | { |
240 | struct path_cond cond = { current_fsuid(), mode }; | 240 | struct path_cond cond = { current_fsuid(), mode }; |
241 | 241 | ||
242 | if (!dir->mnt || !mediated_filesystem(dir->dentry)) | 242 | if (!mediated_filesystem(dir->dentry)) |
243 | return 0; | 243 | return 0; |
244 | 244 | ||
245 | return common_perm_dir_dentry(op, dir, dentry, mask, &cond); | 245 | return common_perm_dir_dentry(op, dir, dentry, mask, &cond); |