Commit f0870c55 authored by Kevin Hao's avatar Kevin Hao Committed by Benjamin Herrenschmidt

powerpc/math-emu: Remove the unneeded check for CONFIG_MATH_EMULATION in math.c

The math.c is only built when CONFIG_MATH_EMULATION is enabled.
So the #ifdef check for CONFIG_MATH_EMULATION in it seems redundant.
Drop all of them.
Signed-off-by: default avatarKevin Hao <haokexin@gmail.com>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent cf5c2e54
...@@ -154,7 +154,6 @@ FLOATFUNC(fsqrts); ...@@ -154,7 +154,6 @@ FLOATFUNC(fsqrts);
#define XEU 15 #define XEU 15
#define XFLB 10 #define XFLB 10
#ifdef CONFIG_MATH_EMULATION
static int static int
record_exception(struct pt_regs *regs, int eflag) record_exception(struct pt_regs *regs, int eflag)
{ {
...@@ -212,7 +211,6 @@ record_exception(struct pt_regs *regs, int eflag) ...@@ -212,7 +211,6 @@ record_exception(struct pt_regs *regs, int eflag)
return (fpscr & FPSCR_FEX) ? 1 : 0; return (fpscr & FPSCR_FEX) ? 1 : 0;
} }
#endif /* CONFIG_MATH_EMULATION */
int int
do_mathemu(struct pt_regs *regs) do_mathemu(struct pt_regs *regs)
...@@ -222,11 +220,9 @@ do_mathemu(struct pt_regs *regs) ...@@ -222,11 +220,9 @@ do_mathemu(struct pt_regs *regs)
signed short sdisp; signed short sdisp;
u32 insn = 0; u32 insn = 0;
int idx = 0; int idx = 0;
#ifdef CONFIG_MATH_EMULATION
int (*func)(void *, void *, void *, void *); int (*func)(void *, void *, void *, void *);
int type = 0; int type = 0;
int eflag, trap; int eflag, trap;
#endif
if (get_user(insn, (u32 *)pc)) if (get_user(insn, (u32 *)pc))
return -EFAULT; return -EFAULT;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment