summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/math-emu/fsub.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/fsub.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/fsub.c')
-rw-r--r--arch/powerpc/math-emu/fsub.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/math-emu/fsub.c b/arch/powerpc/math-emu/fsub.c
index 78b09446a0e1..02c5dff458ba 100644
--- a/arch/powerpc/math-emu/fsub.c
+++ b/arch/powerpc/math-emu/fsub.c
@@ -13,7 +13,6 @@ fsub(void *frD, void *frA, void *frB)
FP_DECL_D(B);
FP_DECL_D(R);
FP_DECL_EX;
- int ret = 0;
#ifdef DEBUG
printk("%s: %p %p %p\n", __func__, frD, frA, frB);
@@ -31,7 +30,7 @@ fsub(void *frD, void *frA, void *frB)
B_s ^= 1;
if (A_s != B_s && A_c == FP_CLS_INF && B_c == FP_CLS_INF)
- ret |= EFLAG_VXISI;
+ FP_SET_EXCEPTION(EFLAG_VXISI);
FP_ADD_D(R, A, B);