assert: Remove unnecessary disable interrupts code

Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
This commit is contained in:
zhangyuan21 2023-06-19 14:54:10 +08:00 committed by Xiang Xiao
parent 3aa2aa4703
commit f2dc9402f6

View File

@ -672,16 +672,6 @@ void _assert(FAR const char *filename, int linenum,
#if CONFIG_BOARD_RESET_ON_ASSERT >= 1
board_reset(CONFIG_BOARD_ASSERT_RESET_VALUE);
#else
/* Disable interrupts on this CPU */
up_irq_save();
# ifdef CONFIG_SMP
/* Try (again) to stop activity on other CPUs */
spin_trylock(&g_cpu_irqlock);
# endif
for (; ; )
{
up_mdelay(250);