summaryrefslogtreecommitdiffstats
path: root/arch/mips/math-emu/dp_add.c
diff options
context:
space:
mode:
authorToma Tabacu <toma.tabacu@imgtec.com>2015-02-24 15:25:11 +0000
committerRalf Baechle <ralf@linux-mips.org>2015-04-01 17:21:47 +0200
commitc775aa12307efecb00ea78265210535dc41cdd49 (patch)
tree9431955325a8eb469d8de5cbff77764df53a083c /arch/mips/math-emu/dp_add.c
parent20c82d93d3c284700c7749f51d4eff3eaaf3e13f (diff)
downloadlinux-c775aa12307efecb00ea78265210535dc41cdd49.tar.bz2
MIPS: LLVMLinux: Silence variable self-assignment warnings.
Remove variable self-assignments. This silences a bunch of -Wself-assign warnings reported by clang. The changed code can be compiled without warnings by both gcc and clang. Signed-off-by: Toma Tabacu <toma.tabacu@imgtec.com> Signed-off-by: Daniel Sanders <daniel.sanders@imgtec.com> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/9314/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/math-emu/dp_add.c')
-rw-r--r--arch/mips/math-emu/dp_add.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/mips/math-emu/dp_add.c b/arch/mips/math-emu/dp_add.c
index 7f64577df984..58b27959a6c4 100644
--- a/arch/mips/math-emu/dp_add.c
+++ b/arch/mips/math-emu/dp_add.c
@@ -150,8 +150,6 @@ union ieee754dp ieee754dp_add(union ieee754dp x, union ieee754dp y)
* leaving result in xm, xs and xe.
*/
xm = xm + ym;
- xe = xe;
- xs = xs;
if (xm >> (DP_FBITS + 1 + 3)) { /* carry out */
xm = XDPSRS1(xm);
@@ -160,11 +158,8 @@ union ieee754dp ieee754dp_add(union ieee754dp x, union ieee754dp y)
} else {
if (xm >= ym) {
xm = xm - ym;
- xe = xe;
- xs = xs;
} else {
xm = ym - xm;
- xe = xe;
xs = ys;
}
if (xm == 0)