summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/math-emu/fsqrt.c
diff options
context:
space:
mode:
authorLiu Yu <yu.liu@freescale.com>2008-10-28 04:50:20 +0100
committerKumar Gala <galak@kernel.crashing.org>2008-12-03 15:19:15 +0100
commit033b8a333c66e0a7dc63132c1bd65175dc98bc25 (patch)
tree65d743e530ddbca545e8c34f709690c253ebc258 /arch/powerpc/math-emu/fsqrt.c
parentpowerpc/math-emu: Adopt new version of _FP_CHOOSENAN (diff)
downloadlinux-033b8a333c66e0a7dc63132c1bd65175dc98bc25.tar.xz
linux-033b8a333c66e0a7dc63132c1bd65175dc98bc25.zip
powerpc/math-emu: Remove redundant 'ret'
FP_DECL_EX is already used, so ret is redundant. And FP_SET_EXCEPTION will add status into return value. Signed-off-by: Liu Yu <yu.liu@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/math-emu/fsqrt.c')
-rw-r--r--arch/powerpc/math-emu/fsqrt.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/powerpc/math-emu/fsqrt.c b/arch/powerpc/math-emu/fsqrt.c
index 3e90072693a0..a55fc7d49983 100644
--- a/arch/powerpc/math-emu/fsqrt.c
+++ b/arch/powerpc/math-emu/fsqrt.c
@@ -12,7 +12,6 @@ fsqrt(void *frD, void *frB)
FP_DECL_D(B);
FP_DECL_D(R);
FP_DECL_EX;
- int ret = 0;
#ifdef DEBUG
printk("%s: %p %p %p %p\n", __func__, frD, frB);
@@ -25,9 +24,9 @@ fsqrt(void *frD, void *frB)
#endif
if (B_s && B_c != FP_CLS_ZERO)
- ret |= EFLAG_VXSQRT;
+ FP_SET_EXCEPTION(EFLAG_VXSQRT);
if (B_c == FP_CLS_NAN)
- ret |= EFLAG_VXSNAN;
+ FP_SET_EXCEPTION(EFLAG_VXSNAN);
FP_SQRT_D(R, B);