projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95306f0
)
MIPS: math-emu: Avoid an assignment within if statement condition
author
Aleksandar Markovic
<
[email protected]
>
Thu, 2 Nov 2017 11:14:03 +0000
(12:14 +0100)
committer
Ralf Baechle
<
[email protected]
>
Tue, 12 Dec 2017 16:20:20 +0000
(17:20 +0100)
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 <
[email protected]
>
Cc: Douglas Leung <
[email protected]
>
Cc: Goran Ferenc <
[email protected]
>
Cc: James Hogan <
[email protected]
>
Cc: Maciej W. Rozycki <
[email protected]
>
Cc: Miodrag Dinic <
[email protected]
>
Cc: Paul Burton <
[email protected]
>
Cc: Petar Jovanovic <
[email protected]
>
Cc: Raghu Gandham <
[email protected]
>
Cc:
[email protected]
Cc:
[email protected]
Patchwork: https://patchwork.linux-mips.org/patch/17586/
Signed-off-by: Ralf Baechle <
[email protected]
>
arch/mips/math-emu/cp1emu.c
patch
|
blob
|
history
diff --git
a/arch/mips/math-emu/cp1emu.c
b/arch/mips/math-emu/cp1emu.c
index da6c1c0c30c11685e3251e5fd1f7aa673714a0cb..9e5c8806e43a24a546786d328681364214f6a311 100644
(file)
--- a/
arch/mips/math-emu/cp1emu.c
+++ b/
arch/mips/math-emu/cp1emu.c
@@
-1353,7
+1353,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;