file->f_op is never NULL...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Al Viro
2013-09-22 16:27:52 -04:00
parent 22bd002ee7
commit 72c2d53192
29 changed files with 74 additions and 97 deletions
+1 -1
View File
@@ -937,7 +937,7 @@ static int validate_mmap_request(struct file *file,
struct address_space *mapping;
/* files must support mmap */
if (!file->f_op || !file->f_op->mmap)
if (!file->f_op->mmap)
return -ENODEV;
/* work out if what we've got could possibly be shared