OSDN Git Service

parisc: Fix compiler warnings in float emulation code
authorHelge Deller <deller@gmx.de>
Fri, 24 May 2019 21:16:25 +0000 (23:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Jul 2019 07:56:31 +0000 (09:56 +0200)
commit96fdfe5665d4b4b8b5569abcd0903925edac5d34
tree709c647a7466c07e45475bb5fd4e5cdc96d20e80
parentececcbae0a3a915f241cfa7b8410bf63deef2dd3
parisc: Fix compiler warnings in float emulation code

[ Upstream commit 6b98d9134e14f5ef4bcf64b27eedf484ed19a1ec ]

Avoid such compiler warnings:
arch/parisc/math-emu/cnv_float.h:71:27: warning: ‘<<’ in boolean context, did you mean ‘<’ ? [-Wint-in-bool-context]
     ((Dintp1(dint_valueA) << 33 - SGL_EXP_LENGTH) || Dintp2(dint_valueB))
arch/parisc/math-emu/fcnvxf.c:257:6: note: in expansion of macro ‘Dint_isinexact_to_sgl’
  if (Dint_isinexact_to_sgl(srcp1,srcp2)) {

Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/parisc/math-emu/cnv_float.h