* s/unsigned char/uint8_t/ for clarity
* Drop redundant return at the end of a void function
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
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;
#else
ASSERT_UNREACHABLE();
#endif
-
- return;
}
void do_debug(struct cpu_user_regs *regs)