diff options
author | Toma Tabacu <[email protected]> | 2015-02-24 15:25:11 +0000 |
---|---|---|
committer | Ralf Baechle <[email protected]> | 2015-04-01 17:21:47 +0200 |
commit | c775aa12307efecb00ea78265210535dc41cdd49 (patch) | |
tree | 9431955325a8eb469d8de5cbff77764df53a083c /arch/mips/math-emu/sp_sub.c | |
parent | 20c82d93d3c284700c7749f51d4eff3eaaf3e13f (diff) |
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 <[email protected]>
Signed-off-by: Daniel Sanders <[email protected]>
Cc: Ralf Baechle <[email protected]>
Cc: [email protected]
Cc: [email protected]
Patchwork: https://patchwork.linux-mips.org/patch/9314/
Signed-off-by: Ralf Baechle <[email protected]>
Diffstat (limited to 'arch/mips/math-emu/sp_sub.c')
-rw-r--r-- | arch/mips/math-emu/sp_sub.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/mips/math-emu/sp_sub.c b/arch/mips/math-emu/sp_sub.c index 8592e49032b8..1189bc5ca1fd 100644 --- a/arch/mips/math-emu/sp_sub.c +++ b/arch/mips/math-emu/sp_sub.c @@ -148,8 +148,6 @@ union ieee754sp ieee754sp_sub(union ieee754sp x, union ieee754sp y) /* generate 28 bit result of adding two 27 bit numbers */ xm = xm + ym; - xe = xe; - xs = xs; if (xm >> (SP_FBITS + 1 + 3)) { /* carry out */ SPXSRSX1(); /* shift preserving sticky */ @@ -157,11 +155,8 @@ union ieee754sp ieee754sp_sub(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) { |