treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / riscv / mm / extable.c
blob2fc72942215155b0e92e32d833e1d2e302ebe01d
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3 * Copyright (C) 2009 Sunplus Core Technology Co., Ltd.
4 * Lennox Wu <lennox.wu@sunplusct.com>
5 * Chen Liqin <liqin.chen@sunplusct.com>
6 * Copyright (C) 2013 Regents of the University of California
7 */
10 #include <linux/extable.h>
11 #include <linux/module.h>
12 #include <linux/uaccess.h>
14 int fixup_exception(struct pt_regs *regs)
16 const struct exception_table_entry *fixup;
18 fixup = search_exception_tables(regs->epc);
19 if (fixup) {
20 regs->epc = fixup->fixup;
21 return 1;
23 return 0;