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>
This commit is contained in:

committed by
Ralf Baechle

parent
20c82d93d3
commit
c775aa1230
@@ -148,8 +148,6 @@ union ieee754sp ieee754sp_add(union ieee754sp x, union ieee754sp y)
|
||||
* leaving result in xm, xs and xe.
|
||||
*/
|
||||
xm = xm + ym;
|
||||
xe = xe;
|
||||
xs = xs;
|
||||
|
||||
if (xm >> (SP_FBITS + 1 + 3)) { /* carry out */
|
||||
SPXSRSX1();
|
||||
@@ -157,11 +155,8 @@ union ieee754sp ieee754sp_add(union ieee754sp x, union ieee754sp y)
|
||||
} else {
|
||||
if (xm >= ym) {
|
||||
xm = xm - ym;
|
||||
xe = xe;
|
||||
xs = xs;
|
||||
} else {
|
||||
xm = ym - xm;
|
||||
xe = xe;
|
||||
xs = ys;
|
||||
}
|
||||
if (xm == 0)
|
||||
|
Reference in New Issue
Block a user