OSDN Git Service

FROMLIST: MIPS: math-emu: Avoid an assignment within if statement condition
authorAleksandar Markovic <aleksandar.markovic@mips.com>
Thu, 2 Nov 2017 11:14:03 +0000 (12:14 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Mon, 5 Feb 2018 16:58:37 +0000 (08:58 -0800)
commit7ac185315bf0b2a42b70ad55e5030667bd81ce91
tree712640c76c8aaf10966f808236cce5c7fba4e714
parent0d0e0871fd4f7fb4a6feeb00ac9993c83504c384
FROMLIST: MIPS: math-emu: Avoid an assignment within if statement condition

Move invocation of fpu_emu() to be out of if statement condition.

This makes code easier to follow and debug, and fixes a checkpatch
warning.

Signed-off-by: Aleksandar Markovic <aleksandar.markovic@mips.com>
(cherry picked from: https://patchwork.linux-mips.org/patch/17586/)
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
arch/mips/math-emu/cp1emu.c