Skip to content

Commit

Permalink
remove redundant memset & unlock in smp
Browse files Browse the repository at this point in the history
  • Loading branch information
zmshahaha committed Sep 27, 2024
1 parent caac564 commit f00642f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions components/drivers/smp/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ void rt_smp_call_ipi_handler(int vector, void *param)
if (err)
{
LOG_E("Have no event\n");
rt_memset(&rt_smp_work[cur_cpu].event, 0, sizeof(struct rt_smp_event));
rt_spin_unlock(&rt_smp_work[cur_cpu].lock);
}
rt_memset(&rt_smp_work[cur_cpu].event, 0, sizeof(struct rt_smp_event));
}
Expand Down

0 comments on commit f00642f

Please sign in to comment.