Skip to content

Commit

Permalink
powerpc/math-emu: Remove the unneeded check for CONFIG_MATH_EMULATION…
Browse files Browse the repository at this point in the history
… 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: Kevin Hao <[email protected]>
Signed-off-by: Benjamin Herrenschmidt <[email protected]>
  • Loading branch information
haokexin authored and ozbenh committed Aug 14, 2013
1 parent cf5c2e5 commit f0870c5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions arch/powerpc/math-emu/math.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ FLOATFUNC(fsqrts);
#define XEU 15
#define XFLB 10

#ifdef CONFIG_MATH_EMULATION
static int
record_exception(struct pt_regs *regs, int eflag)
{
Expand Down Expand Up @@ -212,7 +211,6 @@ record_exception(struct pt_regs *regs, int eflag)

return (fpscr & FPSCR_FEX) ? 1 : 0;
}
#endif /* CONFIG_MATH_EMULATION */

int
do_mathemu(struct pt_regs *regs)
Expand All @@ -222,11 +220,9 @@ do_mathemu(struct pt_regs *regs)
signed short sdisp;
u32 insn = 0;
int idx = 0;
#ifdef CONFIG_MATH_EMULATION
int (*func)(void *, void *, void *, void *);
int type = 0;
int eflag, trap;
#endif

if (get_user(insn, (u32 *)pc))
return -EFAULT;
Expand Down

0 comments on commit f0870c5

Please sign in to comment.