]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - mm/nommu.c
file->f_op is never NULL...
[mirror_ubuntu-artful-kernel.git] / mm / nommu.c
index ecd1f158548e95a51cf004ad3f4d4ff7acb87a88..9e6cb02cba644c4ec357775e2acb22c5451f2ee7 100644 (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