Signed-off-by: chengjinsong <chengjinsong2@huawei.com>
This commit is contained in:
chengjinsong 2022-08-08 19:00:50 +08:00
parent 4cba28d6d7
commit 77b09b2ab4

View File

@ -55,7 +55,7 @@ int ParamRWMutexUnlock(ParamRWMutex *lock)
int ParamRWMutexDelete(ParamRWMutex *lock)
{
PARAM_CHECK(lock != NULL, return -1, "Invalid lock");
uint32_t ret = pthread_rwlock_destroy(&lock->rwlock);
int ret = pthread_rwlock_destroy(&lock->rwlock);
PARAM_CHECK(ret == 0, return -1, "Failed to mutex lock ret %d", ret);
return 0;
}