mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
drivers/note: fix typo falgs and align local name to irq_mask
Signed-off-by: chao an <anchao.archer@bytedance.com>
This commit is contained in:
parent
3d3db4a375
commit
849081d348
1 changed files with 3 additions and 3 deletions
|
|
@ -2034,10 +2034,10 @@ void sched_note_filter_irq(FAR struct note_filter_named_irq_s *oldf,
|
|||
void sched_note_filter_tag(FAR struct note_filter_named_tag_s *oldf,
|
||||
FAR struct note_filter_named_tag_s *newf)
|
||||
{
|
||||
irqstate_t falgs;
|
||||
FAR struct note_driver_s **driver;
|
||||
irqstate_t irq_mask;
|
||||
|
||||
falgs = spin_lock_irqsave_wo_note(&g_note_lock);
|
||||
irq_mask = spin_lock_irqsave_wo_note(&g_note_lock);
|
||||
|
||||
if (oldf != NULL)
|
||||
{
|
||||
|
|
@ -2073,7 +2073,7 @@ void sched_note_filter_tag(FAR struct note_filter_named_tag_s *oldf,
|
|||
}
|
||||
}
|
||||
|
||||
spin_unlock_irqrestore_wo_note(&g_note_lock, falgs);
|
||||
spin_unlock_irqrestore_wo_note(&g_note_lock, irq_mask);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue