Commit c775aa12 authored by Toma Tabacu's avatar Toma Tabacu Committed by Ralf Baechle

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: default avatarToma Tabacu <toma.tabacu@imgtec.com>
Signed-off-by: default avatarDaniel 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: default avatarRalf Baechle <ralf@linux-mips.org>
parent 20c82d93
...@@ -150,8 +150,6 @@ union ieee754dp ieee754dp_add(union ieee754dp x, union ieee754dp y) ...@@ -150,8 +150,6 @@ union ieee754dp ieee754dp_add(union ieee754dp x, union ieee754dp y)
* leaving result in xm, xs and xe. * leaving result in xm, xs and xe.
*/ */
xm = xm + ym; xm = xm + ym;
xe = xe;
xs = xs;
if (xm >> (DP_FBITS + 1 + 3)) { /* carry out */ if (xm >> (DP_FBITS + 1 + 3)) { /* carry out */
xm = XDPSRS1(xm); xm = XDPSRS1(xm);
...@@ -160,11 +158,8 @@ union ieee754dp ieee754dp_add(union ieee754dp x, union ieee754dp y) ...@@ -160,11 +158,8 @@ union ieee754dp ieee754dp_add(union ieee754dp x, union ieee754dp y)
} else { } else {
if (xm >= ym) { if (xm >= ym) {
xm = xm - ym; xm = xm - ym;
xe = xe;
xs = xs;
} else { } else {
xm = ym - xm; xm = ym - xm;
xe = xe;
xs = ys; xs = ys;
} }
if (xm == 0) if (xm == 0)
......
...@@ -153,8 +153,6 @@ union ieee754dp ieee754dp_sub(union ieee754dp x, union ieee754dp y) ...@@ -153,8 +153,6 @@ union ieee754dp ieee754dp_sub(union ieee754dp x, union ieee754dp y)
/* generate 28 bit result of adding two 27 bit numbers /* generate 28 bit result of adding two 27 bit numbers
*/ */
xm = xm + ym; xm = xm + ym;
xe = xe;
xs = xs;
if (xm >> (DP_FBITS + 1 + 3)) { /* carry out */ if (xm >> (DP_FBITS + 1 + 3)) { /* carry out */
xm = XDPSRS1(xm); /* shift preserving sticky */ xm = XDPSRS1(xm); /* shift preserving sticky */
...@@ -163,11 +161,8 @@ union ieee754dp ieee754dp_sub(union ieee754dp x, union ieee754dp y) ...@@ -163,11 +161,8 @@ union ieee754dp ieee754dp_sub(union ieee754dp x, union ieee754dp y)
} else { } else {
if (xm >= ym) { if (xm >= ym) {
xm = xm - ym; xm = xm - ym;
xe = xe;
xs = xs;
} else { } else {
xm = ym - xm; xm = ym - xm;
xe = xe;
xs = ys; xs = ys;
} }
if (xm == 0) { if (xm == 0) {
......
...@@ -148,8 +148,6 @@ union ieee754sp ieee754sp_add(union ieee754sp x, union ieee754sp y) ...@@ -148,8 +148,6 @@ union ieee754sp ieee754sp_add(union ieee754sp x, union ieee754sp y)
* leaving result in xm, xs and xe. * leaving result in xm, xs and xe.
*/ */
xm = xm + ym; xm = xm + ym;
xe = xe;
xs = xs;
if (xm >> (SP_FBITS + 1 + 3)) { /* carry out */ if (xm >> (SP_FBITS + 1 + 3)) { /* carry out */
SPXSRSX1(); SPXSRSX1();
...@@ -157,11 +155,8 @@ union ieee754sp ieee754sp_add(union ieee754sp x, union ieee754sp y) ...@@ -157,11 +155,8 @@ union ieee754sp ieee754sp_add(union ieee754sp x, union ieee754sp y)
} else { } else {
if (xm >= ym) { if (xm >= ym) {
xm = xm - ym; xm = xm - ym;
xe = xe;
xs = xs;
} else { } else {
xm = ym - xm; xm = ym - xm;
xe = xe;
xs = ys; xs = ys;
} }
if (xm == 0) if (xm == 0)
......
...@@ -148,8 +148,6 @@ union ieee754sp ieee754sp_sub(union ieee754sp x, union ieee754sp y) ...@@ -148,8 +148,6 @@ union ieee754sp ieee754sp_sub(union ieee754sp x, union ieee754sp y)
/* generate 28 bit result of adding two 27 bit numbers /* generate 28 bit result of adding two 27 bit numbers
*/ */
xm = xm + ym; xm = xm + ym;
xe = xe;
xs = xs;
if (xm >> (SP_FBITS + 1 + 3)) { /* carry out */ if (xm >> (SP_FBITS + 1 + 3)) { /* carry out */
SPXSRSX1(); /* shift preserving sticky */ SPXSRSX1(); /* shift preserving sticky */
...@@ -157,11 +155,8 @@ union ieee754sp ieee754sp_sub(union ieee754sp x, union ieee754sp y) ...@@ -157,11 +155,8 @@ union ieee754sp ieee754sp_sub(union ieee754sp x, union ieee754sp y)
} else { } else {
if (xm >= ym) { if (xm >= ym) {
xm = xm - ym; xm = xm - ym;
xe = xe;
xs = xs;
} else { } else {
xm = ym - xm; xm = ym - xm;
xe = xe;
xs = ys; xs = ys;
} }
if (xm == 0) { if (xm == 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment