소스 검색

MIPS: FP: Remove silly trick to avoid warning.

Just doesn't fool a modern compiler anymore.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

Ralf Baechle 19 년 전
부모
커밋
2d5e7b9ffd
4개의 변경된 파일0개의 추가작업 그리고 8개의 파일을 삭제
  1. 0 2
      arch/mips/math-emu/dp_fint.c
  2. 0 2
      arch/mips/math-emu/dp_flong.c
  3. 0 2
      arch/mips/math-emu/sp_fint.c
  4. 0 2
      arch/mips/math-emu/sp_flong.c

+ 0 - 2
arch/mips/math-emu/dp_fint.c

@@ -33,8 +33,6 @@ ieee754dp ieee754dp_fint(int x)
 
 	CLEARCX;
 
-	xc = ( 0 ? xc : xc );
-
 	if (x == 0)
 		return ieee754dp_zero(0);
 	if (x == 1 || x == -1)

+ 0 - 2
arch/mips/math-emu/dp_flong.c

@@ -33,8 +33,6 @@ ieee754dp ieee754dp_flong(s64 x)
 
 	CLEARCX;
 
-	xc = ( 0 ? xc : xc );
-
 	if (x == 0)
 		return ieee754dp_zero(0);
 	if (x == 1 || x == -1)

+ 0 - 2
arch/mips/math-emu/sp_fint.c

@@ -33,8 +33,6 @@ ieee754sp ieee754sp_fint(int x)
 
 	CLEARCX;
 
-	xc = ( 0 ? xc : xc );
-
 	if (x == 0)
 		return ieee754sp_zero(0);
 	if (x == 1 || x == -1)

+ 0 - 2
arch/mips/math-emu/sp_flong.c

@@ -33,8 +33,6 @@ ieee754sp ieee754sp_flong(s64 x)
 
 	CLEARCX;
 
-	xc = ( 0 ? xc : xc );
-
 	if (x == 0)
 		return ieee754sp_zero(0);
 	if (x == 1 || x == -1)