treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / unicore32 / mm / extable.c
blobe53352b41c4a3ac56fe49e6c7d2b2b1109b152b4
1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3 * linux/arch/unicore32/mm/extable.c
5 * Code specific to PKUnity SoC and UniCore ISA
7 * Copyright (C) 2001-2010 GUAN Xue-tao
8 */
9 #include <linux/extable.h>
10 #include <linux/uaccess.h>
12 int fixup_exception(struct pt_regs *regs)
14 const struct exception_table_entry *fixup;
16 fixup = search_exception_tables(instruction_pointer(regs));
17 if (fixup)
18 regs->UCreg_pc = fixup->fixup;
20 return fixup != NULL;