diff options
author | Liu Yu <yu.liu@freescale.com> | 2008-10-28 11:50:20 +0800 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2008-12-03 08:19:15 -0600 |
commit | 033b8a333c66e0a7dc63132c1bd65175dc98bc25 (patch) | |
tree | 65d743e530ddbca545e8c34f709690c253ebc258 /arch/powerpc/math-emu/fmul.c | |
parent | 463a8c01e153c06480b862d83d6a71bf5666a577 (diff) | |
download | blackbird-op-linux-033b8a333c66e0a7dc63132c1bd65175dc98bc25.tar.gz blackbird-op-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/fmul.c')
-rw-r--r-- | arch/powerpc/math-emu/fmul.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/math-emu/fmul.c b/arch/powerpc/math-emu/fmul.c index 391fd17d3440..2c1929779892 100644 --- a/arch/powerpc/math-emu/fmul.c +++ b/arch/powerpc/math-emu/fmul.c @@ -13,7 +13,6 @@ fmul(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 @@ fmul(void *frD, void *frA, void *frB) if ((A_c == FP_CLS_INF && B_c == FP_CLS_ZERO) || (A_c == FP_CLS_ZERO && B_c == FP_CLS_INF)) - ret |= EFLAG_VXIMZ; + FP_SET_EXCEPTION(EFLAG_VXIMZ); FP_MUL_D(R, A, B); |