From 849081d3488ea4e5119bf80dc42b7a2918892245 Mon Sep 17 00:00:00 2001 From: chao an Date: Tue, 14 Jan 2025 00:26:08 +0800 Subject: [PATCH] drivers/note: fix typo falgs and align local name to irq_mask Signed-off-by: chao an --- drivers/note/note_driver.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/note/note_driver.c b/drivers/note/note_driver.c index 1a8da443331..481a40d7053 100644 --- a/drivers/note/note_driver.c +++ b/drivers/note/note_driver.c @@ -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