hujun260 commented on code in PR #15324: URL: https://github.com/apache/nuttx/pull/15324#discussion_r1896785468
########## include/nuttx/spinlock.h: ########## @@ -451,21 +443,8 @@ irqstate_t spin_lock_irqsave_wo_note(FAR volatile spinlock_t *lock) irqstate_t ret; Review Comment: done ########## include/nuttx/spinlock.h: ########## @@ -618,21 +588,8 @@ static inline_function void spin_unlock_irqrestore_wo_note(FAR volatile spinlock_t *lock, irqstate_t flags) { - if (NULL == lock) - { - int me = this_cpu(); - DEBUGASSERT(0 < g_irq_spin_count[me]); - g_irq_spin_count[me]--; - - if (0 == g_irq_spin_count[me]) - { - spin_unlock_wo_note(&g_irq_spin); - } - } - else - { - spin_unlock_wo_note(lock); - } + DEBUGASSERT(lock); Review Comment: done -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org