file->f_op is never NULL...

Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
Al Viro 2013-09-22 16:27:52 -04:00
commit 72c2d53192
29 changed files with 74 additions and 97 deletions

View file

@ -24,7 +24,7 @@ int iterate_dir(struct file *file, struct dir_context *ctx)
{
struct inode *inode = file_inode(file);
int res = -ENOTDIR;
if (!file->f_op || !file->f_op->iterate)
if (!file->f_op->iterate)
goto out;
res = security_file_permission(file, MAY_READ);