treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / s390 / include / asm / dis.h
blobc18ed60919147cfc2f680db074cfcc34117c7d04
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Disassemble s390 instructions.
5 * Copyright IBM Corp. 2007
6 * Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com),
7 */
9 #ifndef __ASM_S390_DIS_H__
10 #define __ASM_S390_DIS_H__
12 #include <asm/dis-defs.h>
14 static inline int insn_length(unsigned char code)
16 return ((((int) code + 64) >> 7) + 1) << 1;
19 struct pt_regs;
21 void show_code(struct pt_regs *regs);
22 void print_fn_code(unsigned char *code, unsigned long len);
23 struct s390_insn *find_insn(unsigned char *code);
25 static inline int is_known_insn(unsigned char *code)
27 return !!find_insn(code);
30 #endif /* __ASM_S390_DIS_H__ */