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:
chao an
2025-01-14 00:26:08 +08:00
committed by Xiang Xiao
parent 3d3db4a375
commit 849081d348
+3 -3
View File
@@ -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, void sched_note_filter_tag(FAR struct note_filter_named_tag_s *oldf,
FAR struct note_filter_named_tag_s *newf) FAR struct note_filter_named_tag_s *newf)
{ {
irqstate_t falgs;
FAR struct note_driver_s **driver; 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) 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 #endif