Coverity: Fix 1584343

Reorganize code in the coap_lock_lock_func().
This commit is contained in:
Jon Shallow authored and Jon Shallow committed 2024-03-15 09:02:19 +00:00
1 parent d4beecbbc5
commit b332a188e5
2 files changed
+26 -17

No files matched your search

+1 -1
View File
@@ -219,7 +219,7 @@ typedef struct coap_lock_t {
unsigned int callback_line;
unsigned int being_freed;
unsigned int in_callback;
volatile unsigned int lock_count;
unsigned int lock_count;
} coap_lock_t;
void coap_lock_unlock_func(coap_lock_t *lock, const char *file, int line);