diff options
Diffstat (limited to 'fs/namei.c')
-rw-r--r-- | fs/namei.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/namei.c b/fs/namei.c index 095818089ac1..33dcaf025c49 100644 --- a/fs/namei.c +++ b/fs/namei.c | |||
@@ -265,8 +265,6 @@ int permission(struct inode *inode, int mask, struct nameidata *nd) | |||
265 | if (inode->i_op && inode->i_op->permission) { | 265 | if (inode->i_op && inode->i_op->permission) { |
266 | int extra = 0; | 266 | int extra = 0; |
267 | if (nd) { | 267 | if (nd) { |
268 | if (nd->flags & LOOKUP_ACCESS) | ||
269 | extra |= MAY_ACCESS; | ||
270 | if (nd->flags & LOOKUP_OPEN) | 268 | if (nd->flags & LOOKUP_OPEN) |
271 | extra |= MAY_OPEN; | 269 | extra |= MAY_OPEN; |
272 | } | 270 | } |