diff options
author | Maciej W. Rozycki <macro@linux-mips.org> | 2015-04-03 18:24:51 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2015-04-07 19:09:06 -0400 |
commit | 4a7c2371823a4d35eb4d4f5802c472469934c57d (patch) | |
tree | 9cdef6e81032cd78cb8c64c4934622a1623cae73 | |
parent | fad0bfdb893acfc2444deba6111e700ef013a954 (diff) |
MIPS: Reindent R6 RI exception emulation
Fold a nested `if' statement for the R6 case in `do_ri' into its
containing `if' block, removing excessive indentation causing code to
extend beyond 79 columns.
Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org>
Cc: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/9679/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r-- | arch/mips/kernel/traps.c | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c index 2444c6f9fc03..2594e4b7c0c3 100644 --- a/arch/mips/kernel/traps.c +++ b/arch/mips/kernel/traps.c | |||
@@ -1033,22 +1033,21 @@ asmlinkage void do_ri(struct pt_regs *regs) | |||
1033 | * as quickly as possible. | 1033 | * as quickly as possible. |
1034 | */ | 1034 | */ |
1035 | if (mipsr2_emulation && cpu_has_mips_r6 && | 1035 | if (mipsr2_emulation && cpu_has_mips_r6 && |
1036 | likely(user_mode(regs))) { | 1036 | likely(user_mode(regs)) && |
1037 | if (likely(get_user(opcode, epc) >= 0)) { | 1037 | likely(get_user(opcode, epc) >= 0)) { |
1038 | status = mipsr2_decoder(regs, opcode); | 1038 | status = mipsr2_decoder(regs, opcode); |
1039 | switch (status) { | 1039 | switch (status) { |
1040 | case 0: | 1040 | case 0: |
1041 | case SIGEMT: | 1041 | case SIGEMT: |
1042 | task_thread_info(current)->r2_emul_return = 1; | 1042 | task_thread_info(current)->r2_emul_return = 1; |
1043 | return; | 1043 | return; |
1044 | case SIGILL: | 1044 | case SIGILL: |
1045 | goto no_r2_instr; | 1045 | goto no_r2_instr; |
1046 | default: | 1046 | default: |
1047 | process_fpemu_return(status, | 1047 | process_fpemu_return(status, |
1048 | ¤t->thread.cp0_baduaddr); | 1048 | ¤t->thread.cp0_baduaddr); |
1049 | task_thread_info(current)->r2_emul_return = 1; | 1049 | task_thread_info(current)->r2_emul_return = 1; |
1050 | return; | 1050 | return; |
1051 | } | ||
1052 | } | 1051 | } |
1053 | } | 1052 | } |
1054 | 1053 | ||