x86/traps: Misc non-functional cleanup
PATCH 1/1 x86/traps: Misc non-functional cleanup
* s/unsigned char/uint8_t/ for clarity
* Drop redundant return at the end of a void function
Signed-off-by Andrew Cooper <[email protected]>
---
CC: Jan Beulich <[email protected]>
CC: Wei Liu <[email protected]>
Noticed while reviewing Wei's CONFIG_PV series.
--- xen/arch/x86/traps.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-)
xen/arch/x86/traps.c +3 -5
@@ -1530,9 +1530,9 @@ void do_general_protection(struct cpu_user_regs *regs)if ( regs->error_code &X86_XEC_IDT ) {/* This fault must be due to <INT n> instruction. */ -const struct trap_info *ti; -unsigned char vector = regs->error_code >>3 ; - ti = &v->arch.pv.trap_ctxt[vector]; +uint8_t vector = regs->error_code >>3 ; +const struct trap_info *ti = &v->arch.pv.trap_ctxt[vector]; +if (permit_softint (TI_GET_DPL (ti), v, regs) ) { regs->rip +=2 ;
@@ -1771,8 +1771,6 @@ void do_device_not_available(struct cpu_user_regs *regs) }else TRACE_0D (TRC_PV_MATH_STATE_RESTORE ); - -return ; }void do_debug (struct cpu_user_regs *regs)
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 4 lines · Andrew Cooper
* s/unsigned char/uint8_t/ for clarity
* Drop redundant return at the end of a void functionSigned-off-by Andrew Cooper <[email protected]>
Reviewed-by Wei Liu <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Jan Beulich
Acked-byQuoted 8 lines
Quoted 1 line
Quoted 1 line · On 05.11.18 at 17:23, <[email protected]> wrote:
Quoted 4 lines · Andrew Cooper
* s/unsigned char/uint8_t/ for clarity
* Drop redundant return at the end of a void functionSigned-off-by Andrew Cooper <[email protected]>Reviewed-by Wei Liu <[email protected]>
Acked-by Jan Beulich <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel