]> Pileus Git - ~andy/linux/blobdiff - mm/nommu.c
switch elf_core_write_extra_phdrs() to dump_emit()
[~andy/linux] / 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