xiaoxiang781216 commented on code in PR #10776: URL: https://github.com/apache/nuttx/pull/10776#discussion_r1346789695
########## include/nuttx/spinlock.h: ########## @@ -285,7 +290,7 @@ void spin_unlock_wo_note(FAR volatile spinlock_t *lock); ****************************************************************************/ /* bool spin_islocked(FAR spinlock_t lock); */ -#define spin_islocked(l) (*(l) == SP_LOCKED) +#define spin_islocked(l) (*(l) != SP_UNLOCKED) Review Comment: But, this is spinlock, not rw_spinlock. Please don't touch any code not related to rw_spinlock. -- 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