]> Pileus Git - ~andy/linux/blobdiff - fs/binfmt_em86.c
file->f_op is never NULL...
[~andy/linux] / fs / binfmt_em86.c
index 037a3e2b045b07b27fc1f1fde0a0b3f2e1a541df..f37b08cea1f760a061d7a5d49bf8dcaeda385ab8 100644 (file)
@@ -38,7 +38,7 @@ static int load_em86(struct linux_binprm *bprm)
        /* First of all, some simple consistency checks */
        if ((elf_ex.e_type != ET_EXEC && elf_ex.e_type != ET_DYN) ||
                (!((elf_ex.e_machine == EM_386) || (elf_ex.e_machine == EM_486))) ||
-               (!bprm->file->f_op || !bprm->file->f_op->mmap)) {
+               !bprm->file->f_op->mmap) {
                        return -ENOEXEC;
        }