hv: Remove nested check when dump exception

removed unnecessary nested check when dump exception

Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Mingqiang Chi 2018-05-21 17:48:26 +08:00 committed by lijinxia
parent 8384ed2564
commit d88b968305
1 changed files with 0 additions and 5 deletions

View File

@ -296,11 +296,6 @@ void __assert(uint32_t line, const char *file, char *txt)
void dump_exception(struct intr_excp_ctx *ctx, uint32_t cpu_id)
{
const char *name = "Not defined";
static int nested = 1;
/* avoid endless loop, only dump the first exception */
if (nested++ > 1)
return;
if (ctx->vector < 0x20)
name = excp_names[ctx->vector];