summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/math-emu/fcmpo.c
diff options
context:
space:
mode:
authorLiu Yu <yu.liu@freescale.com>2008-10-28 11:50:20 +0800
committerKumar Gala <galak@kernel.crashing.org>2008-12-03 08:19:15 -0600
commit033b8a333c66e0a7dc63132c1bd65175dc98bc25 (patch)
tree65d743e530ddbca545e8c34f709690c253ebc258 /arch/powerpc/math-emu/fcmpo.c
parent463a8c01e153c06480b862d83d6a71bf5666a577 (diff)
downloadop-kernel-dev-033b8a333c66e0a7dc63132c1bd65175dc98bc25.zip
op-kernel-dev-033b8a333c66e0a7dc63132c1bd65175dc98bc25.tar.gz
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/fcmpo.c')
-rw-r--r--arch/powerpc/math-emu/fcmpo.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/powerpc/math-emu/fcmpo.c b/arch/powerpc/math-emu/fcmpo.c
index b5dc449..5bce011 100644
--- a/arch/powerpc/math-emu/fcmpo.c
+++ b/arch/powerpc/math-emu/fcmpo.c
@@ -14,7 +14,6 @@ fcmpo(u32 *ccr, int crfD, void *frA, void *frB)
FP_DECL_EX;
int code[4] = { (1 << 3), (1 << 1), (1 << 2), (1 << 0) };
long cmp;
- int ret = 0;
#ifdef DEBUG
printk("%s: %p (%08x) %d %p %p\n", __func__, ccr, *ccr, crfD, frA, frB);
@@ -29,7 +28,7 @@ fcmpo(u32 *ccr, int crfD, void *frA, void *frB)
#endif
if (A_c == FP_CLS_NAN || B_c == FP_CLS_NAN)
- ret |= EFLAG_VXVC;
+ FP_SET_EXCEPTION(EFLAG_VXVC);
FP_CMP_D(cmp, A, B, 2);
cmp = code[(cmp + 1) & 3];
@@ -44,5 +43,5 @@ fcmpo(u32 *ccr, int crfD, void *frA, void *frB)
printk("CR: %08x\n", *ccr);
#endif
- return ret;
+ return FP_CUR_EXCEPTIONS;
}
OpenPOWER on IntegriCloud