mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
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>
This commit is contained in:
committed by
Amit Pundir
parent
61a1b96aa0
commit
43339e76cb
@@ -1354,7 +1354,8 @@ branch_common:
|
||||
return SIGILL;
|
||||
|
||||
/* a real fpu computation instruction */
|
||||
if ((sig = fpu_emu(xcp, ctx, ir)))
|
||||
sig = fpu_emu(xcp, ctx, ir);
|
||||
if (sig)
|
||||
return sig;
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user