[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] 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 <andrew.cooper3@xxxxxxxxxx> --- CC: Jan Beulich <JBeulich@xxxxxxxx> CC: Wei Liu <wei.liu2@xxxxxxxxxx> Noticed while reviewing Wei's CONFIG_PV series. --- xen/arch/x86/traps.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/xen/arch/x86/traps.c b/xen/arch/x86/traps.c index c60c8f5..d8b2130 100644 --- a/xen/arch/x86/traps.c +++ b/xen/arch/x86/traps.c @@ -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) -- 2.1.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |