mirror of https://github.com/ARMmbed/mbed-os.git
Fix usage of `Mutex::lock()` function - ignore returned value.
parent
b626e185ec
commit
8482cdc70f
|
|
@ -411,9 +411,7 @@ public:
|
|||
#if MBED_CONF_RTOS_PRESENT
|
||||
void lock(void)
|
||||
{
|
||||
osStatus status = _mutex.lock();
|
||||
MBED_ASSERT(status == osOK);
|
||||
(void) status;
|
||||
_mutex.lock();
|
||||
}
|
||||
void unlock(void)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue