]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - tools/objtool/check.c
objtool: Convert insn type to enum
[linux.git] / tools / objtool / check.c
index a966b22a32ef96d6f777000282b88f27387e6bd8..04572a049cfc3db52ff367e5ca152953ff569b7d 100644 (file)
@@ -267,13 +267,6 @@ static int decode_instructions(struct objtool_file *file)
                        if (ret)
                                goto err;
 
-                       if (!insn->type || insn->type > INSN_LAST) {
-                               WARN_FUNC("invalid instruction type %d",
-                                         insn->sec, insn->offset, insn->type);
-                               ret = -1;
-                               goto err;
-                       }
-
                        hash_add(file->insn_hash, &insn->hash, insn->offset);
                        list_add_tail(&insn->list, &file->insn_list);
                }