Fix usage of `Mutex::lock()` function - ignore returned value.

pull/7423/head
Przemyslaw Stekiel 2018-07-06 11:34:07 +02:00
parent b626e185ec
commit 8482cdc70f
1 changed files with 1 additions and 3 deletions

View File

@ -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)
{