Skip to content

Commit 8482cdc

Browse files
committed
Fix usage of Mutex::lock() function - ignore returned value.
1 parent b626e18 commit 8482cdc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

features/lorawan/lorastack/mac/LoRaMac.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -411,9 +411,7 @@ class LoRaMac {
411411
#if MBED_CONF_RTOS_PRESENT
412412
void lock(void)
413413
{
414-
osStatus status = _mutex.lock();
415-
MBED_ASSERT(status == osOK);
416-
(void) status;
414+
_mutex.lock();
417415
}
418416
void unlock(void)
419417
{

0 commit comments

Comments
 (0)