From: Maciej W. Rozycki Date: Fri, 3 Apr 2015 22:25:43 +0000 (+0100) Subject: MIPS: math-emu: Remove redundant code from NaN comparison X-Git-Tag: omap-for-v4.1/fixes-rc1~111^2~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd267a53055c1a0fb3a8ad7fa74ae91ece13dcfb;p=pandora-kernel.git MIPS: math-emu: Remove redundant code from NaN comparison Remove a redundant call to `ieee754_setandtestcx' in `ieee754sp_cmp' and `ieee754dp_cmp'. The IEEE 754 exception requested will have already been set by a call to `ieee754_setcx' immediately above, because `sig' has to be non-zero to reach here, and the comparison result returned will be 0 regardless of the result from the call. Simplify the return expression remaining. All this reducing the size of code by 16 and 12 instructions or 64 and 48 bytes respectively. Signed-off-by: Maciej W. Rozycki Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/9690/ Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed